Class DocType

All Implemented Interfaces:
Serializable, Cloneable, DocumentType, Node, Item

public class DocType extends AbstractItem implements DocumentType
The iDOM DocType.
Author:
tomyeh
See Also:
  • Field Details

    • _name

      protected String _name
      The element being constrained
    • _pubId

      protected String _pubId
      The public ID of the DOCTYPE
    • _sysId

      protected String _sysId
      The system ID of the DOCTYPE
    • _intSubset

      protected String _intSubset
      The internal subset of the DOCTYPE
  • Constructor Details

    • DocType

      public DocType(String elementName, String publicId, 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(String elementName, String systemId)
      Constructor.
    • DocType

      public DocType(String elementName)
      Constructor.
    • DocType

      protected DocType()
      Constructor.
  • Method Details

    • getPublicId

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

      public final void setPublicId(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 String getSystemId()
      Gets the system ID of an externally referenced DTD, or an empty String if none is referenced.
      Specified by:
      getSystemId in interface DocumentType
      Returns:
      the system ID of referenced DTD; never null
    • setSystemId

      public final void setSystemId(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 String getInternalSubset()
      Gets the data for the internal subset.
      Specified by:
      getInternalSubset in interface DocumentType
    • setInternalSubset

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

      public final String getName()
      Gets the element name being constrained. Never null.
      Specified by:
      getName in interface DocumentType
      Specified by:
      getName in interface Item
      See Also:
    • setName

      public final void setName(String elementName)
      Description copied from interface: Item
      Sets the name of the item. For vertices that support namespace (implements Namespaceable), it is the same as setTagName.
      Specified by:
      setName in interface Item
      Overrides:
      setName in class AbstractItem
      See Also:
    • getNodeType

      public final short getNodeType()
      Specified by:
      getNodeType in interface Node
    • getEntities

      public final NamedNodeMap getEntities()
      Specified by:
      getEntities in interface DocumentType
    • getNotations

      public final NamedNodeMap getNotations()
      Specified by:
      getNotations in interface DocumentType
    • toString

      public String toString()
      Overrides:
      toString in class Object