コード例 #1
0
  /** {@inheritDoc} */
  protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
      throws UnmarshallingException {
    CipherReference cr = (CipherReference) parentXMLObject;

    if (childXMLObject instanceof Transforms) {
      cr.setTransforms((Transforms) childXMLObject);
    } else {
      super.processChildElement(parentXMLObject, childXMLObject);
    }
  }
コード例 #2
0
  /** {@inheritDoc} */
  protected void processAttribute(XMLObject xmlObject, Attr attribute)
      throws UnmarshallingException {
    CipherReference cr = (CipherReference) xmlObject;

    if (attribute.getLocalName().equals(CipherReference.URI_ATTRIB_NAME)) {
      cr.setURI(attribute.getValue());
    } else {
      super.processAttribute(xmlObject, attribute);
    }
  }