All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.tools.xjc.addon.xew.ParametrisationInfo Maven / Gradle / Ivy

Go to download

This JAXB plugin utilizes the power of @XmlElementWrapper annotation. Originally xjc trends to create wrapper classes which are the containers for collections. This plugin goes through all properties to find ones which can be represented in the model in more optimal way.

The newest version!
package com.sun.tools.xjc.addon.xew;

import com.sun.codemodel.JDefinedClass;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * Container for parametrisation class and corresponding implementation. If value objects are enabled, then class and
 * implementation refer the same class for simplicity.
 */
public class ParametrisationInfo {

	public final JDefinedClass parametrisationClass;

	public JDefinedClass	   parametrisationImpl;

	public ParametrisationInfo(JDefinedClass parametrisationClass) {
		this.parametrisationClass = parametrisationClass;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy