Top Description Methods
jakarta.faces.component

public Interface Doctype

Known Direct Implementers
jakarta.faces.component.html.HtmlDoctype

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

Since
4.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The public identifier of the document, or null if there is none.
getPublic
()

Returns the public identifier of the document, or null if there is none.

public String

Returns:

The name of the first element in the document, never null.
getRootElement
()

Returns the name of the first element in the document, never null.

public String

Returns:

The system identifier of the document, or null if there is none.
getSystem
()

Returns the system identifier of the document, or null if there is none.

Method Detail

getPublicback to summary
public String getPublic()

Returns the public identifier of the document, or null if there is none. For example, "-//W3C//DTD XHTML 1.1//EN".

Returns:String

The public identifier of the document, or null if there is none.

getRootElementback to summary
public String getRootElement()

Returns the name of the first element in the document, never null. For example, "html".

Returns:String

The name of the first element in the document, never null.

getSystemback to summary
public 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:String

The system identifier of the document, or null if there is none.