| Modifier and Type | Field and Description |
|---|---|
| protected String | elementName
The element being constrained |
| protected String | internalSubset
The internal subset of the DOCTYPE |
| protected String | publicID
The public ID of the DOCTYPE |
| private static final long | serialVersionUID
JDOM2 Serialization.
|
| protected String | systemID
The system ID of the DOCTYPE |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DocType | |
| public DocType | detach()
Overrides org. |
| public String | Returns: String - element name for DOCTYPEThis will retrieve the element name being constrained. |
| public String | Returns: String - the internal subsetThis returns the data for the internal subset. |
| public Document | getParent()
Overrides org. |
| public String | Returns: String - public ID of referenced DTD.This will retrieve the public ID of an externally
referenced DTD, or an empty |
| public String | Returns: String - system ID of referenced DTD.This will retrieve the system ID of an externally
referenced DTD, or an empty |
| public String | Returns: the empty stringImplements abstract org. |
| public DocType | Returns: thisDocType instanceString name of
root element being constrained.This will set the root element name declared by this DOCTYPE declaration. |
| public void | setInternalSubset(String
data for the internal subset, as a
newData)String.This sets the data for the internal subset. |
| protected DocType | setParent(Parent
new parent element parent)Overrides org. |
| public DocType | Returns: DocTypeDocType this DocType objectid to set publicID)This will set the public ID of an externally referenced DTD. |
| public DocType | Returns: systemIDString system ID of
referenced DTD.id to set systemID)This will set the system ID of an externally referenced DTD. |
| public String | Returns: String - information about the
DocTypeOverrides java. String representation of the
DocType, suitable for debugging.
|
| elementName | back to summary |
|---|---|
| protected String elementName The element being constrained
| |
| internalSubset | back to summary |
|---|---|
| protected String internalSubset The internal subset of the DOCTYPE
| |
| publicID | back to summary |
|---|---|
| protected String publicID The public ID of the DOCTYPE
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. JDOM2 Serialization. In this case, DocType is simple. | |
| systemID | back to summary |
|---|---|
| protected String systemID The system ID of the DOCTYPE
| |
| DocType | back to summary |
|---|---|
| protected DocType() Default, no-args constructor for implementations to use if needed. | |
| DocType | back to summary |
|---|---|
| public DocType(String elementName, String publicID, String systemID) This will create the
| |
| DocType | back to summary |
|---|---|
| public DocType(String elementName, String systemID) This will create the
| |
| DocType | back to summary |
|---|---|
| public DocType(String elementName) This will create the
| |
| clone | back to summary |
|---|---|
| public DocType clone() Overrides org. Doc from org. Return a deep clone of this instance. Even if this instance has a parent, the returned clone will not. All JDOM core classes are Cloneable, and never throw CloneNotSupportedException. Additionally all Cloneable JDOM classes return the correct type of instance from this method and there is no need to cast the result (co-variant return value). Subclasses of this should still call super.clone() in their clone method.
| |
| detach | back to summary |
|---|---|
| public DocType detach() Overrides org. Doc from org. Detaches this child from its parent or does nothing if the child has no parent.
This method can be overridden by particular Content subclasses to return
a specific type of Content (co-variant return type). All overriding
subclasses must call | |
| getElementName | back to summary |
|---|---|
| public String getElementName() This will retrieve the element name being constrained.
| |
| getInternalSubset | back to summary |
|---|---|
| public String getInternalSubset() This returns the data for the internal subset.
| |
| getParent | back to summary |
|---|---|
| public Document getParent() Overrides org. Doc from org. Return this child's parent, or null if this child is currently
not attached. The parent can be either an
This method can be overridden by particular Content subclasses to return
a specific type of Parent (co-variant return type). All overriding
subclasses must call | |
| getPublicID | back to summary |
|---|---|
| public String getPublicID() This will retrieve the public ID of an externally
referenced DTD, or an empty
| |
| getSystemID | back to summary |
|---|---|
| public String getSystemID() This will retrieve the system ID of an externally
referenced DTD, or an empty
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements abstract org. Returns the empty string since doctypes don't have an XPath 1.0 string value. | |
| setElementName | back to summary |
|---|---|
| public DocType setElementName(String elementName) This will set the root element name declared by this DOCTYPE declaration.
| |
| setInternalSubset | back to summary |
|---|---|
| public void setInternalSubset(String newData) This sets the data for the internal subset.
| |
| setParent | back to summary |
|---|---|
| protected DocType setParent(Parent parent) Overrides org. Doc from org. Sets the parent of this Content. The caller is responsible for removing any pre-existing parentage.
This method can be overridden by particular Content subclasses to return
a specific type of Content (co-variant return type). All overriding
subclasses must call | |
| setPublicID | back to summary |
|---|---|
| public DocType setPublicID(String publicID) This will set the public ID of an externally referenced DTD.
| |
| setSystemID | back to summary |
|---|---|
| public DocType setSystemID(String systemID) This will set the system ID of an externally referenced DTD.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This returns a | |