org.opensaml.xml.signature.impl
Class DigestMethodImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.xml.signature.impl.DigestMethodImpl
All Implemented Interfaces:
ElementExtensibleXMLObject, DigestMethod, ValidatingXMLObject, XMLObject

public class DigestMethodImpl
extends AbstractValidatingXMLObject
implements DigestMethod

Concrete implementation of DigestMethod.


Field Summary
private  String algorithm
          Algorithm attribute value.
private  IndexedXMLObjectChildrenList<XMLObject> unknownChildren
          "any" children.
 
Fields inherited from interface org.opensaml.xml.signature.DigestMethod
ALGORITHM_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected DigestMethodImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 String getAlgorithm()
          Get the Algorithm URI attribute value.
 List<XMLObject> getOrderedChildren()
          Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
 List<XMLObject> getUnknownXMLObjects()
          Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.
 List<XMLObject> getUnknownXMLObjects(QName typeOrName)
          Gets the list of XMLObjects added to this XMLObject as part of the "any" content model, and which match the specified QName.
 void setAlgorithm(String newAlgorithm)
          Set the Algorithm URI attribute value.
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

algorithm

private String algorithm
Algorithm attribute value.


unknownChildren

private final IndexedXMLObjectChildrenList<XMLObject> unknownChildren
"any" children.

Constructor Detail

DigestMethodImpl

protected DigestMethodImpl(String namespaceURI,
                           String elementLocalName,
                           String namespacePrefix)
Constructor.

Parameters:
namespaceURI -
elementLocalName -
namespacePrefix -
Method Detail

getAlgorithm

public String getAlgorithm()
Get the Algorithm URI attribute value.

Specified by:
getAlgorithm in interface DigestMethod
Returns:
the Algorithm URI attribute value

setAlgorithm

public void setAlgorithm(String newAlgorithm)
Set the Algorithm URI attribute value.

Specified by:
setAlgorithm in interface DigestMethod
Parameters:
newAlgorithm - the new Algorithm URI attribute value

getUnknownXMLObjects

public List<XMLObject> getUnknownXMLObjects()
Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.

Specified by:
getUnknownXMLObjects in interface ElementExtensibleXMLObject
Returns:
list of XMLObjects added to this XMLObject as part of the "any" content model

getUnknownXMLObjects

public List<XMLObject> getUnknownXMLObjects(QName typeOrName)
Gets the list of XMLObjects added to this XMLObject as part of the "any" content model, and which match the specified QName.

Specified by:
getUnknownXMLObjects in interface ElementExtensibleXMLObject
Parameters:
typeOrName - the QName of the statements to return
Returns:
list of XMLObjects added to this XMLObject as part of the "any" content model

getOrderedChildren

public List<XMLObject> getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.

Specified by:
getOrderedChildren in interface XMLObject
Returns:
ordered list of child elements


Copyright © 1999-2013. All Rights Reserved.