handler = new org.exolab.castor.xml.XMLFieldHandler() {
@Override
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
BoundsType target = (BoundsType) object;
return target.getMinlat();
}
@Override
public void setValue( java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try {
BoundsType target = (BoundsType) object;
target.setMinlat( (java.math.BigDecimal) value);
} catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
@Override
@SuppressWarnings("unused")
public java.lang.Object newInstance(java.lang.Object parent) {
return new java.math.BigDecimal(0);
}
};
desc.setImmutable(true);
desc.setSchemaType("decimal");
desc.setHandler(handler);
desc.setRequired(true);
desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _minlat
fieldValidator = new org.exolab.castor.xml.FieldValidator();
fieldValidator.setMinOccurs(1);
{ //-- local scope
org.exolab.castor.xml.validators.DecimalValidator typeValidator;
typeValidator = new org.exolab.castor.xml.validators.DecimalValidator();
fieldValidator.setValidator(typeValidator);
java.math.BigDecimal min = new java.math.BigDecimal("-90.0");
typeValidator.setMinInclusive(min);
java.math.BigDecimal max = new java.math.BigDecimal("90.0");
typeValidator.setMaxInclusive(max);
}
desc.setValidator(fieldValidator);
//-- _minlon
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.math.BigDecimal.class, "_minlon", "minlon", org.exolab.castor.xml.NodeType.Attribute);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
@Override
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
BoundsType target = (BoundsType) object;
return target.getMinlon();
}
@Override
public void setValue( java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try {
BoundsType target = (BoundsType) object;
target.setMinlon( (java.math.BigDecimal) value);
} catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
@Override
@SuppressWarnings("unused")
public java.lang.Object newInstance(java.lang.Object parent) {
return new java.math.BigDecimal(0);
}
};
desc.setImmutable(true);
desc.setSchemaType("decimal");
desc.setHandler(handler);
desc.setRequired(true);
desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _minlon
fieldValidator = new org.exolab.castor.xml.FieldValidator();
fieldValidator.setMinOccurs(1);
{ //-- local scope
org.exolab.castor.xml.validators.DecimalValidator typeValidator;
typeValidator = new org.exolab.castor.xml.validators.DecimalValidator();
fieldValidator.setValidator(typeValidator);
java.math.BigDecimal min = new java.math.BigDecimal("-180.0");
typeValidator.setMinInclusive(min);
java.math.BigDecimal max = new java.math.BigDecimal("180.0");
typeValidator.setMaxExclusive(max);
}
desc.setValidator(fieldValidator);
//-- _maxlat
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.math.BigDecimal.class, "_maxlat", "maxlat", org.exolab.castor.xml.NodeType.Attribute);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
@Override
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
BoundsType target = (BoundsType) object;
return target.getMaxlat();
}
@Override
public void setValue( java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try {
BoundsType target = (BoundsType) object;
target.setMaxlat( (java.math.BigDecimal) value);
} catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
@Override
@SuppressWarnings("unused")
public java.lang.Object newInstance(java.lang.Object parent) {
return new java.math.BigDecimal(0);
}
};
desc.setImmutable(true);
desc.setSchemaType("decimal");
desc.setHandler(handler);
desc.setRequired(true);
desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _maxlat
fieldValidator = new org.exolab.castor.xml.FieldValidator();
fieldValidator.setMinOccurs(1);
{ //-- local scope
org.exolab.castor.xml.validators.DecimalValidator typeValidator;
typeValidator = new org.exolab.castor.xml.validators.DecimalValidator();
fieldValidator.setValidator(typeValidator);
java.math.BigDecimal min = new java.math.BigDecimal("-90.0");
typeValidator.setMinInclusive(min);
java.math.BigDecimal max = new java.math.BigDecimal("90.0");
typeValidator.setMaxInclusive(max);
}
desc.setValidator(fieldValidator);
//-- _maxlon
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.math.BigDecimal.class, "_maxlon", "maxlon", org.exolab.castor.xml.NodeType.Attribute);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
@Override
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
BoundsType target = (BoundsType) object;
return target.getMaxlon();
}
@Override
public void setValue( java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try {
BoundsType target = (BoundsType) object;
target.setMaxlon( (java.math.BigDecimal) value);
} catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
@Override