/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { ResultType result = (ResultType) xmlObject; if (attribute.getLocalName().equals(ResultType.RESOURCE_ID_ATTTRIB_NAME)) { result.setResourceId(attribute.getValue()); } else { super.processAttribute(xmlObject, attribute); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException { ResultType result = (ResultType) parentObject; if (childObject instanceof ObligationsType) { result.setObligations((ObligationsType) childObject); } else if (childObject instanceof StatusType) { result.setStatus((StatusType) childObject); } else if (childObject instanceof DecisionType) { result.setDecision((DecisionType) childObject); } else { super.processChildElement(parentObject, childObject); } }