_contentDescriptor = new XMLFieldDescriptorImpl(String.class,
"content", "content", NodeType.Text);
_contentDescriptor.setImmutable(true);
//-- setHandler
DateFieldHandler dfh = new DateFieldHandler(
new XMLFieldHandler() {
public Object getValue( Object object )
throws IllegalStateException
{
return object;
}
public void setValue( Object object, Object value)
throws IllegalStateException, IllegalArgumentException
{
if (java.sql.Date.class == object.getClass()) {
Date target = (Date)object;
if (java.util.Date.class.isAssignableFrom(value.getClass())) {
target.setTime(((Date)value).getTime());
}
}
}
public Object newInstance( Object parent ) {
return null;
}
}
);
dfh.setUseSQLDate(true);
_contentDescriptor.setHandler(dfh);
}
if (_fields == null) {