FileDocCategorySizeDatePackage
ObjectContainer.javaAPI DocJava SE 6 API4424Tue Jun 10 00:23:04 BST 2008com.sun.org.apache.xml.internal.security.signature

ObjectContainer

public class ObjectContainer extends SignatureElementProxy
Handles <ds:Object> elements Object {@link Element} supply facility which can contain any kind data
author
Christian Geuer-Pollmann $todo$ if we remove childen, the boolean values are not updated

Fields Summary
static Logger
log
{@link java.util.logging} logging facility
Constructors Summary
public ObjectContainer(Document doc)
Constructs {@link ObjectContainer}

param
doc the {@link Document} in which Object element is placed


                     
      

      super(doc);
   
public ObjectContainer(Element element, String BaseURI)
Constructs {@link ObjectContainer} from {@link Element}

param
element is Object element
param
BaseURI the URI of the resource where the XML instance was stored
throws
XMLSecurityException


      super(element, BaseURI);
   
Methods Summary
public org.w3c.dom.NodeappendChild(org.w3c.dom.Node node)
Adds childe Node

param
node childe Node
return
the new node in the tree.


      Node result = null;

      if (this._state == MODE_SIGN) {
         result = this._constructionElement.appendChild(node);
      }

      return result;
   
public java.lang.StringgetBaseLocalName()

inheritDoc

      return Constants._TAG_OBJECT;
   
public java.lang.StringgetEncoding()
Returns the Encoding attribute

return
the Encoding attribute

      return this._constructionElement.getAttributeNS(null, Constants._ATT_ENCODING);
   
public java.lang.StringgetId()
Returns the Id attribute

return
the Id attribute

      return this._constructionElement.getAttributeNS(null, Constants._ATT_ID);
   
public java.lang.StringgetMimeType()
Returns the MimeType attribute

return
the MimeType attribute

      return this._constructionElement.getAttributeNS(null, Constants._ATT_MIMETYPE);
   
public voidsetEncoding(java.lang.String Encoding)
Sets the Encoding attribute

param
Encoding the Encoding attribute


      if ((this._state == MODE_SIGN) && (Encoding != null)) {
         this._constructionElement.setAttributeNS(null, Constants._ATT_ENCODING,
                                                Encoding);
      }
   
public voidsetId(java.lang.String Id)
Sets the Id attribute

param
Id Id attribute


      if ((this._state == MODE_SIGN) && (Id != null)) {
         this._constructionElement.setAttributeNS(null, Constants._ATT_ID, Id);
         IdResolver.registerElementById(this._constructionElement, Id);
      }
   
public voidsetMimeType(java.lang.String MimeType)
Sets the MimeType attribute

param
MimeType the MimeType attribute


      if ((this._state == MODE_SIGN) && (MimeType != null)) {
         this._constructionElement.setAttributeNS(null, Constants._ATT_MIMETYPE,
                                                MimeType);
      }