コード例 #1
0
 /** {@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);
   }
 }
コード例 #2
0
  /** {@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);
    }
  }