Interface Doctype

All Known Implementing Classes:
HtmlDoctype

public interface Doctype

Doctype is an interface that must be implemented by any UIComponent that represents a document type declaration.

Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the public identifier of the document, or null if there is none.
    Returns the name of the first element in the document, never null.
    Returns the system identifier of the document, or null if there is none.
  • Method Details

    • getRootElement

      String getRootElement()
      Returns the name of the first element in the document, never null. For example, "html".
      Returns:
      The name of the first element in the document, never null.
    • getPublic

      String getPublic()
      Returns the public identifier of the document, or null if there is none. For example, "-//W3C//DTD XHTML 1.1//EN".
      Returns:
      The public identifier of the document, or null if there is none.
    • getSystem

      String getSystem()
      Returns the system identifier of the document, or null if there is none. For example, "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd".
      Returns:
      The system identifier of the document, or null if there is none.