Class DoctypeDecl


  • public class DoctypeDecl
    extends Object

    DoctypeDecl defines behaviour for a document type declaration.

    Author:
    Bas Peters
    • Constructor Detail

      • DoctypeDecl

        public DoctypeDecl()
        Default constructor
      • DoctypeDecl

        public DoctypeDecl​(String name,
                           String publicId,
                           String systemId)

        Creates a new DocType instance

        Parameters:
        name - the name of the root element
        publicId - the public identifier
        systemId - the system identifier
    • Method Detail

      • setName

        public void setName​(String name)

        Sets the name of the root element.

        Parameters:
        name - the name of the root element
      • setPublicId

        public void setPublicId​(String publicId)

        Sets the public identifier.

        Parameters:
        publicId - the public identifier
      • setSystemId

        public void setSystemId​(String systemId)

        Sets the system identifier.

        Parameters:
        systemId - the system identifier
      • getName

        public String getName()

        Returns the name of the root element.

        Returns:
        String - the name of the root element
      • getPublicId

        public String getPublicId()

        Returns the public identifier.

        Returns:
        String - the public identifier
      • getSystemId

        public String getSystemId()

        Returns the system identifier.

        Returns:
        String - the system identifier