|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jdom.DocType
DocType represents an XML
DOCTYPE declaration.
| Field Summary | |
protected Document |
document
The document having this DOCTYPE |
protected String |
elementName
The element being constrained |
protected String |
publicID
The public ID of the DOCTYPE |
protected String |
systemID
The system ID of the DOCTYPE |
| 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 | |
Object |
clone()
This will return a clone of this DocType. |
boolean |
equals(Object ob)
This tests for equality of this DocType to the supplied
Object. |
Document |
getDocument()
This retrieves the owning for
this DocType, or null if not a currently a member of a
. |
String |
getElementName()
This will retrieve the element name being constrained. |
String |
getPublicID()
This will retrieve the public ID of an externally referenced DTD, or an empty String if
none is referenced. |
String |
getSerializedForm()
Deprecated. Deprecated in Beta7, use XMLOutputter.outputString(DocType) instead |
String |
getSystemID()
This will retrieve the system ID of an externally referenced DTD, or an empty String if
none is referenced. |
int |
hashCode()
This returns the hash code for this DocType. |
protected DocType |
setDocument(Document document)
This sets the holding this doctype. |
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 java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected String elementName
protected String publicID
protected String systemID
protected Document document
| Constructor Detail |
protected DocType()
Default, no-args constructor for implementations to use if needed.
public DocType(String elementName,
String publicID,
String systemID)
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 DTDsystemID - String system ID of
referenced DTD
public DocType(String elementName,
String systemID)
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 DTDpublic DocType(String elementName)
This will create the DocType with
the specified element name
elementName - String name of
element being constrained.| Method Detail |
public String getElementName()
This will retrieve the element name being constrained.
String - element name for DOCTYPEpublic String getPublicID()
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.public DocType setPublicID(String publicID)
This will set the public ID of an externally referenced DTD.
String public ID of
referenced DTD.public String getSystemID()
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.public DocType setSystemID(String systemID)
This will set the system ID of an externally referenced DTD.
String system ID of
referenced DTD.public Document getDocument()
This retrieves the owning for
this DocType, or null if not a currently a member of a
Document.
Document
Document owning this DocType, or null.protected DocType setDocument(Document document)
This sets the holding this doctype.
Document
document - Document holding this doctypeDocument this DocType modifiedpublic String toString()
This returns a String representation of the
DocType, suitable for debugging.
String - information about the
DocTypepublic final boolean equals(Object ob)
This tests for equality of this DocType to the supplied
Object.
ob - Object to compare to.boolean - whether the DocType is
equal to the supplied Object.public final int hashCode()
This returns the hash code for this DocType.
int - hash code.public Object clone()
This will return a clone of this DocType.
Object - clone of this DocType.public final String getSerializedForm()
This will return the DocType in XML format,
usable in an XML document.
String - the serialized form of the
DocType.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||