Public Member Functions | |
DocType (String elementName, String publicID, String systemID) | |
DocType (String elementName, String systemID) | |
DocType (String elementName) | |
String | getElementName () |
DocType | setElementName (String elementName) |
String | getPublicID () |
DocType | setPublicID (String publicID) |
String | getSystemID () |
DocType | setSystemID (String systemID) |
Document | getDocument () |
void | setInternalSubset (String newData) |
String | getInternalSubset () |
String | toString () |
final boolean | equals (Object ob) |
final int | hashCode () |
Object | clone () |
Protected Member Functions | |
DocType () | |
DocType | setDocument (Document document) |
Protected Attributes | |
String | elementName |
String | publicID |
String | systemID |
Document | document |
String | internalSubset |
DocType
represents an XML DOCTYPE declaration.
org::jdom::DocType::DocType | ( | ) | [inline, protected] |
Default, no-args constructor for implementations to use if needed.
org::jdom::DocType::DocType | ( | String | elementName, | |
String | publicID, | |||
String | systemID | |||
) | [inline] |
This will create the DocType
with the specified element name and a reference to an external DTD.
elementName | String name of element being constrained. | |
publicID | String public ID of referenced DTD | |
systemID | String system ID of referenced DTD |
IllegalDataException | if the given system ID is not a legal system literal or the public ID is not a legal public ID. | |
IllegalNameException | if the given root element name is not a legal XML element name. |
org::jdom::DocType::DocType | ( | String | elementName, | |
String | systemID | |||
) | [inline] |
This will create the DocType
with the specified element name and reference to an external DTD.
elementName | String name of element being constrained. | |
systemID | String system ID of referenced DTD |
IllegalDataException | if the given system ID is not a legal system literal. | |
IllegalNameException | if the given root element name is not a legal XML element name. |
org::jdom::DocType::DocType | ( | String | elementName | ) | [inline] |
This will create the DocType
with the specified element name
elementName | String name of element being constrained. |
IllegalNameException | if the given root element name is not a legal XML element name. |
String org::jdom::DocType::getElementName | ( | ) | [inline] |
This will retrieve the element name being constrained.
String
- element name for DOCTYPE DocType org::jdom::DocType::setElementName | ( | String | elementName | ) | [inline] |
This will set the root element name declared by this DOCTYPE declaration.
elementName | String name of root element being constrained. |
IllegalNameException | if the given root element name is not a legal XML element name. |
String org::jdom::DocType::getPublicID | ( | ) | [inline] |
This will retrieve the public ID of an externally referenced DTD, or an empty String
if none is referenced.
String
- public ID of referenced DTD. DocType org::jdom::DocType::setPublicID | ( | String | publicID | ) | [inline] |
This will set the public ID of an externally referenced DTD.
IllegalDataException | if the given public ID is not a legal public ID. |
String org::jdom::DocType::getSystemID | ( | ) | [inline] |
This will retrieve the system ID of an externally referenced DTD, or an empty String
if none is referenced.
String
- system ID of referenced DTD. DocType org::jdom::DocType::setSystemID | ( | String | systemID | ) | [inline] |
This will set the system ID of an externally referenced DTD.
String
system ID of referenced DTD. IllegalDataException | if the given system ID is not a legal system literal. |
Document org::jdom::DocType::getDocument | ( | ) | [inline] |
void org::jdom::DocType::setInternalSubset | ( | String | newData | ) | [inline] |
This sets the data for the internal subset.
newData | data for the internal subset, as a String . |
String org::jdom::DocType::getInternalSubset | ( | ) | [inline] |
This returns the data for the internal subset.
String
- the internal subset String org::jdom::DocType::toString | ( | ) | [inline] |
final boolean org::jdom::DocType::equals | ( | Object | ob | ) | [inline] |
This tests for equality of this DocType
to the supplied Object
. DocTypes are considered equal only if they are referentially equal (i.e. the same object). User code may choose to compare DocType objects based on element name, public ID, system ID, and/or internal DTD subset.
ob | Object to compare to. |
final int org::jdom::DocType::hashCode | ( | ) | [inline] |
Object org::jdom::DocType::clone | ( | ) | [inline] |
String org::jdom::DocType::elementName [protected] |
The element being constrained
String org::jdom::DocType::publicID [protected] |
The public ID of the DOCTYPE
String org::jdom::DocType::systemID [protected] |
The system ID of the DOCTYPE
Document org::jdom::DocType::document [protected] |
The document having this DOCTYPE
String org::jdom::DocType::internalSubset [protected] |
The internal subset of the DOCTYPE