jakarta.faces.component.Doctype Maven / Gradle / Ivy
package jakarta.faces.component;
/**
*
* Doctype is an interface that must be implemented by any {@link UIComponent} that represents a document type declaration.
*
*
* @since 4.0
*/
public interface Doctype {
/**
* Returns the name of the first element in the document, never null
.
* For example, "html"
.
* @return The name of the first element in the document, never null
.
*/
String getRootElement();
/**
* Returns the public identifier of the document, or null
if there is none.
* For example, "-//W3C//DTD XHTML 1.1//EN"
.
* @return The public identifier of the document, or null
if there is none.
*/
String getPublic();
/**
* 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"
.
* @return The system identifier of the document, or null
if there is none.
*/
String getSystem();
}