/** * Called when parsing of a new element started. */ public Object newChild(EjbRelation relation, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if (localName.equals("ejb-relationship-role")) { child = new EjbRelationshipRole(); } return child; }
/** * Called when parsing character is complete. */ public void addChild(EjbRelationshipRole parent, CmrField field, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setCmrField(field); }
/** * Called when parsing character is complete. */ public void addChild(EjbRelationshipRole parent, RelationshipRoleSource source, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setRelationshipRoleSource(source); }
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbRelationshipRole role, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("ejb-relationship-role-name")) { role.setEjbRelationshipRoleName(getValue(localName, value)); } else if (localName.equals("multiplicity")) { role.setMultiplicity(getValue(localName, value)); } }
/** * Called when parsing of a new element started. */ public Object newChild(EjbRelationshipRole parent, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if (localName.equals("cascade-delete")) { parent.setCascadeDelete(true); } else if (localName.equals("relationship-role-source")) { child = new RelationshipRoleSource(); } else if (localName.equals("cmr-field")) { child = new CmrField(); } return child; }
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbRelationshipRole role, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("ejb-relationship-role-name")) { role.setEjbRelationshipRoleName(getValue(localName, value)); } else if (localName.equals("multiplicity")) { role.setMultiplicity(getValue(localName, value)); } }
/** * Called when parsing of a new element started. */ public Object newChild(EjbRelationshipRole parent, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if (localName.equals("cascade-delete")) { parent.setCascadeDelete(true); } else if (localName.equals("relationship-role-source")) { child = new RelationshipRoleSource(); } else if (localName.equals("cmr-field")) { child = new CmrField(); } return child; }
/** * Called when parsing character is complete. */ public void addChild(EjbRelationshipRole parent, RelationshipRoleSource source, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setRelationshipRoleSource(source); }
/** * Called when parsing character is complete. */ public void addChild(EjbRelationshipRole parent, CmrField field, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setCmrField(field); }
/** * Called when parsing of a new element started. */ public Object newChild(EjbRelation relation, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if (localName.equals("ejb-relationship-role")) { child = new EjbRelationshipRole(); } return child; }