|
||||||||||
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 java.lang.String |
elementName
The element being constrained |
protected java.util.List |
entities
The entities the DOCTYPE defines |
protected java.util.List |
notations
The notations that the DOCTYPE defines |
protected java.lang.String |
publicID
The public ID of the DOCTYPE |
protected java.lang.String |
systemID
The system ID of the DOCTYPE |
Constructor Summary | |
protected |
DocType()
Default, no-args constructor for implementations to use if needed. |
|
DocType(java.lang.String elementName)
This will create the DocType with
the specified element name
|
|
DocType(java.lang.String elementName,
java.lang.String systemID)
This will create the DocType with
the specified element name and reference to an
external DTD. |
|
DocType(java.lang.String elementName,
java.lang.String publicID,
java.lang.String systemID)
This will create the DocType with
the specified element name and a reference to an
external DTD. |
Method Summary | |
java.lang.String |
getElementName()
This will retrieve the element name being constrained. |
java.lang.String |
getPublicID()
This will retrieve the public ID of an externally referenced DTD, or an empty String if
none is referenced. |
java.lang.String |
getSystemID()
This will retrieve the system ID of an externally referenced DTD, or an empty String if
none is referenced. |
DocType |
setPublicID(java.lang.String publicID)
This will set the public ID of an externally referenced DTD. |
DocType |
setSystemID(java.lang.String systemID)
This will set the system ID of an externally referenced DTD. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String elementName
protected java.util.List entities
protected java.util.List notations
protected java.lang.String publicID
protected java.lang.String systemID
Constructor Detail |
protected DocType()
Default, no-args constructor for implementations to use if needed.
public DocType(java.lang.String elementName, java.lang.String publicID, java.lang.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 DTDpublic DocType(java.lang.String elementName, java.lang.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(java.lang.String elementName)
This will create the DocType
with
the specified element name
elementName
- String
name of
element being constrained.Method Detail |
public java.lang.String getElementName()
This will retrieve the element name being constrained.
String
- element name for DOCTYPEpublic java.lang.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(java.lang.String publicID)
This will set the public ID of an externally referenced DTD.
String
public ID of
referenced DTD.public java.lang.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(java.lang.String systemID)
This will set the system ID of an externally referenced DTD.
String
system ID of
referenced DTD.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |