
com.github.vsspt.xjc.date.PluginImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxb-ri-xjc Show documentation
Show all versions of jaxb-ri-xjc Show documentation
Generates toString, setter, equals and hashCode methods on JAXB generated classes.
The newest version!
package com.github.vsspt.xjc.date;
import java.util.Date;
import javax.xml.datatype.XMLGregorianCalendar;
import com.github.vsspt.xjc.AbstractReplacePluginImpl;
public class PluginImpl extends AbstractReplacePluginImpl {
private static final String OPTION_NAME = "XvsDate";
private static final String USAGE = "XvsDate : replaces XMLCalendar by java.util.Date";
@Override
public String getOptionName() {
return OPTION_NAME;
}
@Override
public String getUsage() {
return USAGE;
}
@SuppressWarnings("unchecked")
@Override
protected Class getInterfaceClass() {
return (Class) Date.class;
}
@SuppressWarnings("unchecked")
@Override
protected Class getImplementationClass() {
return (Class) Date.class;
}
@SuppressWarnings("unchecked")
@Override
protected Class getReplaceableClass() {
return (Class) XMLGregorianCalendar.class;
}
@Override
protected boolean checkNull() {
return false;
}
@Override
protected boolean assignOnFieldDeclaration() {
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy