desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.castor.xmlctf.bestpractise.genpackage.PartyThree.class, "_partyThree", "partyThree", org.exolab.castor.xml.NodeType.Element);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
UnderlyerAdjustment target = (UnderlyerAdjustment) object;
return target.getPartyThree();
}
public void setValue( java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try {
UnderlyerAdjustment target = (UnderlyerAdjustment) object;
target.setPartyThree( (org.castor.xmlctf.bestpractise.genpackage.PartyThree) value);
} catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance(java.lang.Object parent) {
return new org.castor.xmlctf.bestpractise.genpackage.PartyThree();
}
};
desc.setSchemaType("xml.srcgen.template.generated.PartyThree");
desc.setHandler(handler);
desc.setNameSpaceURI("http://www.fpml.org/2003/FpML-4-0");
desc.setMultivalued(false);
addFieldDescriptor(desc);
addSequenceElement(desc);
//-- validation code for: _partyThree
fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
}
desc.setValidator(fieldValidator);
//-- _unwindCashflowList
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.castor.xmlctf.bestpractise.genpackage.UnwindCashflow.class, "_unwindCashflowList", "unwindCashflow", org.exolab.castor.xml.NodeType.Element);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
UnderlyerAdjustment target = (UnderlyerAdjustment) object;
return target.getUnwindCashflow();
}
public void setValue( java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try {
UnderlyerAdjustment target = (UnderlyerAdjustment) object;
target.addUnwindCashflow( (org.castor.xmlctf.bestpractise.genpackage.UnwindCashflow) value);
} catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException {
try {
UnderlyerAdjustment target = (UnderlyerAdjustment) object;
target.removeAllUnwindCashflow();
} catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance(java.lang.Object parent) {