{
@Override
public java.lang.Object getValue(java.lang.Object object)
throws IllegalStateException
{
TransactionUrl target = (TransactionUrl) object;
return target.getName();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
TransactionUrl target = (TransactionUrl) object;
target.setName((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: _name
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("success");
typeValidator.setWhiteSpace("preserve");
}
desc.setValidator(fieldValidator);
//-- initialize element descriptors
//-- _path
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
java.lang.String.class, "_path", "path",
org.exolab.castor.xml.NodeType.Element);
desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler()
{
@Override
public java.lang.Object getValue(java.lang.Object object)
throws IllegalStateException
{
TransactionUrl target = (TransactionUrl) object;
return target.getPath();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
TransactionUrl target = (TransactionUrl) object;
target.setPath((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.setRequired(true);
desc.setMultivalued(false);
addFieldDescriptor(desc);
addSequenceElement(desc);
//-- validation code for: _path
fieldValidator = new org.exolab.castor.xml.FieldValidator();
fieldValidator.setMinOccurs(1);
{ //-- local scope
org.exolab.castor.xml.validators.StringValidator typeValidator;
typeValidator = new org.exolab.castor.xml.validators.StringValidator();
fieldValidator.setValidator(typeValidator);
typeValidator.setWhiteSpace("preserve");
}
desc.setValidator(fieldValidator);
//-- _transactionUrlParameters
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
org.xrace.desjardins.reponse.TransactionUrlParameters.class,
"_transactionUrlParameters", "parameters",
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
{
TransactionUrl target = (TransactionUrl) object;
return target.getTransactionUrlParameters();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
TransactionUrl target = (TransactionUrl) object;
target
.setTransactionUrlParameters((org.xrace.desjardins.reponse.TransactionUrlParameters) value);
}
catch (java.lang.Exception ex)
{
throw new IllegalStateException(ex.toString());