public class EndpointReferenceTypeUnmarshaller extends AbstractWSAddressingObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
throws UnmarshallingException {
EndpointReferenceType epr = (EndpointReferenceType) parentXMLObject;
if (childXMLObject instanceof Address) {
epr.setAddress((Address) childXMLObject);
} else if (childXMLObject instanceof Metadata) {
epr.setMetadata((Metadata) childXMLObject);
} else if (childXMLObject instanceof ReferenceParameters) {
epr.setReferenceParameters((ReferenceParameters) childXMLObject);
} else {
epr.getUnknownXMLObjects().add(childXMLObject);
}
}