/** * Populates the given Type object with data from the given XML Element. * * @param datatypeObject the type to parse into * @param datatypeElement the DOM element to be parsed * @throws DataTypeException if the data did not match the expected type rules */ public void parse(Type datatypeObject, Element datatypeElement) throws HL7Exception { if (datatypeObject instanceof Varies) { parseVaries((Varies) datatypeObject, datatypeElement); } else if (datatypeObject instanceof Primitive) { parsePrimitive((Primitive) datatypeObject, datatypeElement); } else if (datatypeObject instanceof Composite) { parseComposite((Composite) datatypeObject, datatypeElement); } }
/** * Populates the given Type object with data from the given XML Element. * * @param datatypeObject the type to parse into * @param datatypeElement the DOM element to be parsed * @throws DataTypeException if the data did not match the expected type rules */ public void parse(Type datatypeObject, Element datatypeElement) throws HL7Exception { if (datatypeObject instanceof Varies) { parseVaries((Varies) datatypeObject, datatypeElement); } else if (datatypeObject instanceof Primitive) { parsePrimitive((Primitive) datatypeObject, datatypeElement); } else if (datatypeObject instanceof Composite) { parseComposite((Composite) datatypeObject, datatypeElement); } }