Class DefaultDocumentType

    • Field Detail

      • elementName

        protected java.lang.String elementName
        The root element name of the document typ
    • Constructor Detail

      • DefaultDocumentType

        public DefaultDocumentType()
      • DefaultDocumentType

        public DefaultDocumentType​(java.lang.String elementName,
                                   java.lang.String systemID)

        This will create a new DocumentType with a reference to the external DTD

        Parameters:
        elementName - is the root element name of the document type
        systemID - is the system ID of the external DTD
      • DefaultDocumentType

        public DefaultDocumentType​(java.lang.String elementName,
                                   java.lang.String publicID,
                                   java.lang.String systemID)

        This will create a new DocumentType with a reference to the external DTD

        Parameters:
        elementName - is the root element name of the document type
        publicID - is the public ID of the DTD
        systemID - is the system ID of the DTD
    • Method Detail

      • getElementName

        public java.lang.String getElementName()
        Description copied from interface: DocumentType
        This method is the equivalent to the Node.getName()method. It is added for clarity.
        Returns:
        the root element name for the document type.
      • setElementName

        public void setElementName​(java.lang.String elementName)
        Description copied from interface: DocumentType
        This method is the equivalent to the Node.setName(java.lang.String)method. It is added for clarity.
        Parameters:
        elementName - DOCUMENT ME!
      • getPublicID

        public java.lang.String getPublicID()
        DOCUMENT ME!
        Returns:
        the public ID of the document type
      • setPublicID

        public void setPublicID​(java.lang.String publicID)
        Sets the public ID of the document type
        Parameters:
        publicID - DOCUMENT ME!
      • getSystemID

        public java.lang.String getSystemID()
        DOCUMENT ME!
        Returns:
        the system ID of the document type
      • setSystemID

        public void setSystemID​(java.lang.String systemID)
        Sets the system ID of the document type
        Parameters:
        systemID - DOCUMENT ME!
      • getInternalDeclarations

        public java.util.List<Decl> getInternalDeclarations()
        Description copied from interface: DocumentType
        Returns a list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage
        Returns:
        DOCUMENT ME!
      • setInternalDeclarations

        public void setInternalDeclarations​(java.util.List<Decl> internalDeclarations)
        Description copied from interface: DocumentType
        Sets the list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage
        Parameters:
        internalDeclarations - DOCUMENT ME!
      • getExternalDeclarations

        public java.util.List<Decl> getExternalDeclarations()
        Description copied from interface: DocumentType
        Returns a list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage
        Returns:
        DOCUMENT ME!
      • setExternalDeclarations

        public void setExternalDeclarations​(java.util.List<Decl> externalDeclarations)
        Description copied from interface: DocumentType
        Sets the list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage
        Parameters:
        externalDeclarations - DOCUMENT ME!