|
JDOM 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdom.Content
org.jdom.DocType
public class DocType
An XML DOCTYPE declaration. Method allow the user to get and set the root element name, public id, and system id.
| Field Summary | |
|---|---|
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 |
protected String |
systemID
The system ID of the DOCTYPE |
| Fields inherited from class org.jdom.Content |
|---|
parent |
| Constructor Summary | |
|---|---|
protected |
DocType()
Default, no-args constructor for implementations to use if needed. |
|
DocType(String elementName)
This will create the DocType with
the specified element name |
|
DocType(String elementName,
String systemID)
This will create the DocType with
the specified element name and reference to an
external DTD. |
|
DocType(String elementName,
String publicID,
String systemID)
This will create the DocType with
the specified element name and a reference to an
external DTD. |
| Method Summary | |
|---|---|
String |
getElementName()
This will retrieve the element name being constrained. |
String |
getInternalSubset()
This returns the data for the internal subset. |
String |
getPublicID()
This will retrieve the public ID of an externally referenced DTD, or an empty String if
none is referenced. |
String |
getSystemID()
This will retrieve the system ID of an externally referenced DTD, or an empty String if
none is referenced. |
String |
getValue()
Returns the empty string since doctypes don't have an XPath 1.0 string value. |
DocType |
setElementName(String elementName)
This will set the root element name declared by this DOCTYPE declaration. |
void |
setInternalSubset(String newData)
This sets the data for the internal subset. |
DocType |
setPublicID(String publicID)
This will set the public ID of an externally referenced DTD. |
DocType |
setSystemID(String systemID)
This will set the system ID of an externally referenced DTD. |
String |
toString()
This returns a String representation of the
DocType, suitable for debugging. |
| Methods inherited from class org.jdom.Content |
|---|
clone, detach, equals, getDocument, getParent, getParentElement, hashCode, setParent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String elementName
protected String publicID
protected String systemID
protected String internalSubset
| Constructor Detail |
|---|
protected DocType()
public DocType(String elementName,
String publicID,
String systemID)
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 DTDsystemID - 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.
public DocType(String elementName,
String systemID)
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.public DocType(String elementName)
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.| Method Detail |
|---|
public String getElementName()
String - element name for DOCTYPEpublic DocType setElementName(String elementName)
elementName - String name of
root element being constrained.
DocType this DocType object
IllegalNameException - if the given root element name is not a
legal XML element name.public String getPublicID()
String if
none is referenced.
String - public ID of referenced DTD.public DocType setPublicID(String publicID)
publicID - id to set
DocType this DocType object
IllegalDataException - if the given public ID is not a legal
public ID.public String getSystemID()
String if
none is referenced.
String - system ID of referenced DTD.public DocType setSystemID(String systemID)
systemID - id to set
String system ID of
referenced DTD.
IllegalDataException - if the given system ID is not a legal
system literal.public String getValue()
getValue in class Contentpublic void setInternalSubset(String newData)
newData - data for the internal subset, as a
String.public String getInternalSubset()
String - the internal subsetpublic String toString()
String representation of the
DocType, suitable for debugging.
toString in class ObjectString - information about the
DocType
|
JDOM 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||