|
JDOM 2.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdom2.Content
org.jdom2.DocType
org.jdom2.located.LocatedDocType
public class LocatedDocType
An XML DOCTYPE declaration. Method allow the user to get and set the root element name, public id, and system id.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jdom2.Content |
|---|
Content.CType |
| Field Summary |
|---|
| Fields inherited from class org.jdom2.DocType |
|---|
elementName, internalSubset, publicID, systemID |
| Fields inherited from class org.jdom2.Content |
|---|
ctype, parent |
| Constructor Summary | |
|---|---|
LocatedDocType(java.lang.String elementName)
This will create the DocType with
the specified element name |
|
LocatedDocType(java.lang.String elementName,
java.lang.String systemID)
This will create the DocType with
the specified element name and reference to an
external DTD. |
|
LocatedDocType(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 | |
|---|---|
int |
getColumn()
Get the column (character on the line). |
int |
getLine()
Get the line number |
void |
setColumn(int col)
Set the column (character on the line). |
void |
setLine(int line)
Set the line number |
| Methods inherited from class org.jdom2.DocType |
|---|
clone, detach, getElementName, getInternalSubset, getParent, getPublicID, getSystemID, getValue, setElementName, setInternalSubset, setParent, setPublicID, setSystemID, toString |
| Methods inherited from class org.jdom2.Content |
|---|
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParentElement, hashCode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocatedDocType(java.lang.String elementName,
java.lang.String publicID,
java.lang.String systemID)
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
IllegalDataException - if the given system ID is not a legal
system literal or the public ID is not a legal public ID.
IllegalNameException - if the given root element name is not a
legal XML element name.
public LocatedDocType(java.lang.String elementName,
java.lang.String systemID)
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 DTD
IllegalDataException - if the given system ID is not a legal
system literal.
IllegalNameException - if the given root element name is not a
legal XML element name.public LocatedDocType(java.lang.String elementName)
DocType with
the specified element name
elementName - String name of
element being constrained.
IllegalNameException - if the given root element name is not a
legal XML element name.| Method Detail |
|---|
public int getLine()
Located
getLine in interface Locatedpublic int getColumn()
Located
getColumn in interface Locatedpublic void setLine(int line)
Located
setLine in interface Locatedline - the line.public void setColumn(int col)
Located
setColumn in interface Locatedcol - The column
|
JDOM 2.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||