Class DocType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.DocumentType, org.w3c.dom.Node, Item

    public class DocType
    extends AbstractItem
    implements org.w3c.dom.DocumentType
    The iDOM DocType.
    Author:
    tomyeh
    See Also:
    Document, Serialized Form
    • Field Detail

      • _name

        protected java.lang.String _name
        The element being constrained
      • _pubId

        protected java.lang.String _pubId
        The public ID of the DOCTYPE
      • _sysId

        protected java.lang.String _sysId
        The system ID of the DOCTYPE
      • _intSubset

        protected java.lang.String _intSubset
        The internal subset of the DOCTYPE
    • Constructor Detail

      • DocType

        public DocType​(java.lang.String elementName,
                       java.lang.String publicId,
                       java.lang.String systemId)
        Constructor.
        Parameters:
        publicId - the public Id; null or empty if not available
        systemId - the system Id; null or empty if not available
      • DocType

        public DocType​(java.lang.String elementName,
                       java.lang.String systemId)
        Constructor.
      • DocType

        public DocType​(java.lang.String elementName)
        Constructor.
      • DocType

        protected DocType()
        Constructor.
    • Method Detail

      • getPublicId

        public final java.lang.String getPublicId()
        Gets the public ID of an externally referenced DTD, or an empty String if none is referenced.
        Specified by:
        getPublicId in interface org.w3c.dom.DocumentType
        Returns:
        the public ID of referenced DTD; never null
      • setPublicId

        public final void setPublicId​(java.lang.String publicId)
        Sets the public ID of an externally referenced DTD, or an empty String if none is referenced.
        Parameters:
        publicId - the public Id; null or empty if not available
      • getSystemId

        public final java.lang.String getSystemId()
        Gets the system ID of an externally referenced DTD, or an empty String if none is referenced.
        Specified by:
        getSystemId in interface org.w3c.dom.DocumentType
        Returns:
        the system ID of referenced DTD; never null
      • setSystemId

        public final void setSystemId​(java.lang.String systemId)
        Sets the system ID of an externally referenced DTD, or an empty String if none is referenced.
        Parameters:
        systemId - the system Id; null or empty if not available
      • getInternalSubset

        public final java.lang.String getInternalSubset()
        Gets the data for the internal subset.
        Specified by:
        getInternalSubset in interface org.w3c.dom.DocumentType
      • setInternalSubset

        public final void setInternalSubset​(java.lang.String newData)
        Sets the data for the internal subset.
      • getName

        public final java.lang.String getName()
        Gets the element name being constrained. Never null.
        Specified by:
        getName in interface org.w3c.dom.DocumentType
        Specified by:
        getName in interface Item
        See Also:
        Namespaceable.getTagName()
      • getNodeType

        public final short getNodeType()
        Specified by:
        getNodeType in interface org.w3c.dom.Node
      • getEntities

        public final org.w3c.dom.NamedNodeMap getEntities()
        Specified by:
        getEntities in interface org.w3c.dom.DocumentType
      • getNotations

        public final org.w3c.dom.NamedNodeMap getNotations()
        Specified by:
        getNotations in interface org.w3c.dom.DocumentType
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object