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 returns the data for the internal subset
This will retrieve the public ID of an externally
referenced DTD, or an empty
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 root element name declared by this
DOCTYPE declaration.
This sets the data for the internal subset.
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()
getInternalSubset()
getPublicID()
String
if
none is referenced.
getSystemID()
String
if
none is referenced.
hashCode()
DocType
.
setDocument(Document)
{
setElementName(String)
setInternalSubset(String)
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 String internalSubset
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 DocType setElementName(String elementName)
This will set the root element name declared by this DOCTYPE declaration.
String
name of
root element being constrained.
DocType
this DocType object
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.
DocType
this DocType object
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 void setInternalSubset(String newData)
This sets the data for the internal subset.
String
.
public String getInternalSubset()
This returns the data for the internal subset
String
- the internal subset
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
.
All Packages Class Hierarchy This Package Previous Next Index