{
@Override
public java.lang.Object getValue(java.lang.Object object)
throws IllegalStateException
{
Request target = (Request) object;
return target.getInput();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
Request target = (Request) object;
target.setInput((java.lang.String) value);
}
catch (java.lang.Exception ex)
{
throw new IllegalStateException(ex.toString());
}
}
@Override
public java.lang.Object newInstance(java.lang.Object parent)
{
return null;
}
};
desc.setSchemaType("string");
desc.setHandler(handler);
desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _input
fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
org.exolab.castor.xml.validators.StringValidator typeValidator;
typeValidator = new org.exolab.castor.xml.validators.StringValidator();
fieldValidator.setValidator(typeValidator);
typeValidator.setFixed("text");
typeValidator.setWhiteSpace("preserve");
}
desc.setValidator(fieldValidator);
//-- initialize element descriptors
//-- _merchant
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
org.xrace.desjardins.trx.Merchant.class, "_merchant",
"merchant", org.exolab.castor.xml.NodeType.Element);
handler = new org.exolab.castor.xml.XMLFieldHandler()
{
@Override
public java.lang.Object getValue(java.lang.Object object)
throws IllegalStateException
{
Request target = (Request) object;
return target.getMerchant();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
Request target = (Request) object;
target
.setMerchant((org.xrace.desjardins.trx.Merchant) value);
}
catch (java.lang.Exception ex)
{
throw new IllegalStateException(ex.toString());