|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdom2.Content
org.jdom2.EntityRef
org.jdom2.located.LocatedEntityRef
public class LocatedEntityRef
An XML entity reference. Methods allow the user to manage its 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.EntityRef |
---|
name, publicID, systemID |
Fields inherited from class org.jdom2.Content |
---|
ctype, parent |
Constructor Summary | |
---|---|
LocatedEntityRef(java.lang.String name)
This will create a new EntityRef with the supplied name. |
|
LocatedEntityRef(java.lang.String name,
java.lang.String systemID)
This will create a new EntityRef
with the supplied name and system id. |
|
LocatedEntityRef(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID)
This will create a new EntityRef
with the supplied name, public id, and system id. |
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.EntityRef |
---|
clone, detach, getName, getParent, getPublicID, getSystemID, getValue, setName, 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 LocatedEntityRef(java.lang.String name)
EntityRef
with the supplied name.
name
- String
name of element.
IllegalNameException
- if the given name is not a legal
XML name.public LocatedEntityRef(java.lang.String name, java.lang.String systemID)
EntityRef
with the supplied name and system id.
name
- String
name of element.systemID
- system id of the entity reference being constructed
IllegalNameException
- if the given name is not a legal
XML name.
IllegalDataException
- if the given system ID is not a legal
system literal.public LocatedEntityRef(java.lang.String name, java.lang.String publicID, java.lang.String systemID)
EntityRef
with the supplied name, public id, and system id.
name
- String
name of element.publicID
- public id of the entity reference being constructedsystemID
- system id of the entity reference being constructed
IllegalDataException
- if the given system ID is not a legal
system literal or the the given public ID is not a
legal public ID
IllegalNameException
- if the given name is not a legal
XML name.Method Detail |
---|
public int getLine()
Located
getLine
in interface Located
public int getColumn()
Located
getColumn
in interface Located
public void setLine(int line)
Located
setLine
in interface Located
line
- the line.public void setColumn(int col)
Located
setColumn
in interface Located
col
- The column
|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |