| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DocType
represents an XML
DOCTYPE declaration.
Constructor Summary | |
DocType(String elementName, String publicID, String systemID) This will create the DocType with
the specified element name and a reference to an
external DTD. | |
DocType(String elementName, String systemID) This will create the DocType with
the specified element name and reference to an
external DTD. | |
DocType(String elementName) This will create the DocType with
the specified element name
|
Method Summary | |
Object | clone() This will return a clone of this DocType . |
final boolean | equals(Object ob) This tests for equality of this DocType to the supplied
Object . |
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. |
final String | getSerializedForm() This will return the DocType in XML format,
usable in an XML document. |
String | getSystemID() This will retrieve the system ID of an externally referenced DTD, or an empty String if
none is referenced. |
final int | hashCode() This returns the hash code for 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. |
Constructor Detail |
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 DTDString
system ID of
referenced DTDpublic 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 DTDpublic DocType(String elementName)
This will create the DocType
with
the specified element name
String
name of
element being constrained.Method Detail |
public Object clone()
This will return a clone of this DocType
.
Object
- clone of this 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 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 final String getSerializedForm()
This will return the DocType
in XML format,
usable in an XML document.
String
- the serialized form of the
DocType
.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 final int hashCode()
This returns the hash code for this DocType
.
int
- hash code.public DocType setPublicID(String publicID)
This will set the public ID of an externally referenced DTD.
String
public 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 String toString()
This returns a String
representation of the
DocType
, suitable for debugging. If the XML
representation of the DocType
is desired,
getSerializedForm()
should be used.
String
- information about the
DocType
Association Links |
to Class java.lang.String
to Class java.lang.String
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |