/** * Called when parsing of a new element started. */ public Object newChild(Relationships relationships, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if (localName.equals("ejb-relation")) { child = new EjbRelation(); } return child; }
/** * Called when parsing character is complete. */ public void addChild(EjbRelation parent, EjbRelationshipRole role, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addEjbRelationshipRole(role); }
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbRelation relation, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("ejb-relation-name")) { relation.setEjbRelationName(getValue(localName, value)); } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbRelation relation, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("ejb-relation-name")) { relation.setEjbRelationName(getValue(localName, value)); } }
/** * Called when parsing character is complete. */ public void addChild(EjbRelation parent, EjbRelationshipRole role, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addEjbRelationshipRole(role); }
/** * Called when parsing of a new element started. */ public Object newChild(Relationships relationships, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if (localName.equals("ejb-relation")) { child = new EjbRelation(); } return child; }