All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.jdom.DocType
DocType
represents an XML
DOCTYPE declaration.
Default, no-args constructor for implementations to use if needed.
This will create the DocType
with
the specified element name
This will create the DocType
with
the specified element name and reference to an
external DTD.
This will create the DocType
with
the specified element name and a reference to an
external DTD.
This will return a clone of this DocType
.
This tests for equality of this DocType
to the supplied
Object
.
This retrieves the owning
This will retrieve the element name being
constrained.
This will retrieve the public ID of an externally
referenced DTD, or an empty
This will return the
This will retrieve the system ID of an externally
referenced DTD, or an empty
This returns the hash code for this
This sets the
This will set the public ID of an externally
referenced DTD.
This will set the system ID of an externally
referenced DTD.
This returns a {
getElementName()
getPublicID()
String
if
none is referenced.
getSerializedForm()
DocType
in XML format,
usable in an XML document.
Deprecated.
getSystemID()
String
if
none is referenced.
hashCode()
DocType
.
setDocument(Document)
{
setPublicID(String)
setSystemID(String)
toString()
String
representation of the
DocType
, suitable for debugging.
protected String elementName
protected String publicID
protected String systemID
protected Document document
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.
String
name of
element being constrained.
String
public ID of
referenced DTD
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.
String
name of
element being constrained.
String
system ID of
referenced DTD
public DocType(String elementName)
This will create the DocType
with
the specified element name
String
name of
element being constrained.
public String getElementName()
This will retrieve the element name being constrained.
String
- element name for DOCTYPE
public 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 {@link Document}
for
this DocType, or null if not a currently a member of a
{@link Document}
.
Document
owning this DocType, or null.
protected DocType setDocument(Document document)
This sets the {@link Document}
holding this doctype.
Document
holding this doctype
Document
this DocType
modified
public String toString()
This returns a String
representation of the
DocType
, suitable for debugging.
String
- information about the
DocType
public final boolean equals(Object ob)
This tests for equality of this DocType
to the supplied
Object
.
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
.
All Packages Class Hierarchy This Package Previous Next Index