Class ObjectContainer
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.utils.SignatureElementProxy
-
- org.apache.xml.security.signature.ObjectContainer
-
public class ObjectContainer extends SignatureElementProxy
Handles<ds:Object>elementsObjectElementsupply facility which can contain any kind data- Author:
- Christian Geuer-Pollmann $todo$ if we remove childen, the boolean values are not updated
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY
-
-
Constructor Summary
Constructors Constructor Description ObjectContainer(org.w3c.dom.Document doc)ConstructsObjectContainerObjectContainer(org.w3c.dom.Element element, java.lang.String BaseURI)ConstructsObjectContainerfromElement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodeappendChild(org.w3c.dom.Node node)Adds childe Nodejava.lang.StringgetBaseLocalName()Returns the localname of the Elements of the sub-class.java.lang.StringgetEncoding()Returns theEncodingattributejava.lang.StringgetId()Returns theIdattributejava.lang.StringgetMimeType()Returns theMimeTypeattributevoidsetEncoding(java.lang.String Encoding)Sets theEncodingattributevoidsetId(java.lang.String Id)Sets theIdattributevoidsetMimeType(java.lang.String MimeType)Sets theMimeTypeattribute-
Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy
getBaseNamespace
-
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext
-
-
-
-
Constructor Detail
-
ObjectContainer
public ObjectContainer(org.w3c.dom.Document doc)
ConstructsObjectContainer- Parameters:
doc- theDocumentin whichObjectelement is placed
-
ObjectContainer
public ObjectContainer(org.w3c.dom.Element element, java.lang.String BaseURI) throws XMLSecurityExceptionConstructsObjectContainerfromElement- Parameters:
element- isObjectelementBaseURI- the URI of the resource where the XML instance was stored- Throws:
XMLSecurityException
-
-
Method Detail
-
setId
public void setId(java.lang.String Id)
Sets theIdattribute- Parameters:
Id-Idattribute
-
getId
public java.lang.String getId()
Returns theIdattribute- Returns:
- the
Idattribute
-
setMimeType
public void setMimeType(java.lang.String MimeType)
Sets theMimeTypeattribute- Parameters:
MimeType- theMimeTypeattribute
-
getMimeType
public java.lang.String getMimeType()
Returns theMimeTypeattribute- Returns:
- the
MimeTypeattribute
-
setEncoding
public void setEncoding(java.lang.String Encoding)
Sets theEncodingattribute- Parameters:
Encoding- theEncodingattribute
-
getEncoding
public java.lang.String getEncoding()
Returns theEncodingattribute- Returns:
- the
Encodingattribute
-
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node node)
Adds childe Node- Parameters:
node- childe Node- Returns:
- the new node in the tree.
-
getBaseLocalName
public java.lang.String getBaseLocalName()
Description copied from class:ElementProxyReturns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-
-