com.sun.tools.xjc.addon.xew.ParametrisationInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxb-xew-plugin Show documentation
Show all versions of jaxb-xew-plugin Show documentation
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);
}
}