{
@Override
public java.lang.Object getValue(java.lang.Object object)
throws IllegalStateException
{
Merchant target = (Merchant) object;
return target.getId();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
Merchant target = (Merchant) object;
target.setId(value);
}
catch (java.lang.Exception ex)
{
throw new IllegalStateException(ex.toString());
}
}
@Override
public java.lang.Object newInstance(java.lang.Object parent)
{
return new java.lang.Object();
}
};
desc.setSchemaType("java.lang.Object");
desc.setHandler(handler);
desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _id
fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
}
desc.setValidator(fieldValidator);
//-- _key
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
java.lang.Object.class, "_key", "key",
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
{
Merchant target = (Merchant) object;
return target.getKey();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
Merchant target = (Merchant) object;
target.setKey(value);
}
catch (java.lang.Exception ex)
{
throw new IllegalStateException(ex.toString());
}
}
@Override
public java.lang.Object newInstance(java.lang.Object parent)
{
return new java.lang.Object();
}
};
desc.setSchemaType("java.lang.Object");
desc.setHandler(handler);
desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _key
fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
}
desc.setValidator(fieldValidator);
//-- initialize element descriptors
//-- _login
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
org.xrace.desjardins.reponse.Login.class, "_login", "login",
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
{
Merchant target = (Merchant) object;
return target.getLogin();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
Merchant target = (Merchant) object;
target.setLogin((org.xrace.desjardins.reponse.Login) 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("org.xrace.desjardins.reponse.Login");
desc.setHandler(handler);
desc.setRequired(true);
desc.setMultivalued(false);
addFieldDescriptor(desc);
addSequenceElement(desc);
//-- validation code for: _login
fieldValidator = new org.exolab.castor.xml.FieldValidator();
fieldValidator.setMinOccurs(1);
{ //-- local scope
}
desc.setValidator(fieldValidator);
//-- _transaction
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
org.xrace.desjardins.reponse.Transaction.class, "_transaction",
"transaction", 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
{
Merchant target = (Merchant) object;
return target.getTransaction();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
Merchant target = (Merchant) object;
target
.setTransaction((org.xrace.desjardins.reponse.Transaction) 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("org.xrace.desjardins.reponse.Transaction");
desc.setHandler(handler);
desc.setRequired(true);
desc.setMultivalued(false);
addFieldDescriptor(desc);
addSequenceElement(desc);
//-- validation code for: _transaction
fieldValidator = new org.exolab.castor.xml.FieldValidator();
fieldValidator.setMinOccurs(1);
{ //-- local scope
}
desc.setValidator(fieldValidator);
//-- _transactions
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
org.xrace.desjardins.reponse.Transactions.class,
"_transactions", "transactions",
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
{
Merchant target = (Merchant) object;
return target.getTransactions();
}
@Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
Merchant target = (Merchant) object;
target
.setTransactions((org.xrace.desjardins.reponse.Transactions) value);
}
catch (java.lang.Exception ex)
{
throw new IllegalStateException(ex.toString());