|
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.Element
org.jdom2.located.LocatedElement
public class LocatedElement
This Element specialization contains the location information as parsed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jdom2.Content |
|---|
Content.CType |
| Field Summary |
|---|
| Fields inherited from class org.jdom2.Element |
|---|
name, namespace |
| Fields inherited from class org.jdom2.Content |
|---|
ctype, parent |
| Constructor Summary | |
|---|---|
LocatedElement(java.lang.String name)
Create a new element with the supplied (local) name and no namespace. |
|
LocatedElement(java.lang.String name,
Namespace namespace)
Creates a new element with the supplied (local) name and namespace. |
|
LocatedElement(java.lang.String name,
java.lang.String uri)
Creates a new element with the supplied (local) name and a namespace given by a URI. |
|
LocatedElement(java.lang.String name,
java.lang.String prefix,
java.lang.String uri)
Creates a new element with the supplied (local) name and a namespace given by the supplied prefix and URI combination. |
|
| 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.Content |
|---|
equals, getCType, getDocument, getParent, getParentElement, hashCode, setParent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jdom2.Parent |
|---|
getDocument, getParent |
| Constructor Detail |
|---|
public LocatedElement(java.lang.String name,
Namespace namespace)
name - local name of the elementnamespace - namespace for the element
IllegalNameException - if the given name is illegal as an element
namepublic LocatedElement(java.lang.String name)
name - local name of the element
IllegalNameException - if the given name is illegal as an element
name.
public LocatedElement(java.lang.String name,
java.lang.String uri)
name - name of the elementuri - namespace URI for the element
IllegalNameException - if the given name is illegal as an element
name or the given URI is illegal as a
namespace URI
public LocatedElement(java.lang.String name,
java.lang.String prefix,
java.lang.String uri)
name - local name of the elementprefix - namespace prefixuri - namespace URI for the element
IllegalNameException - if the given name is illegal as an element
name, the given prefix is illegal as a
namespace prefix, or the given URI is
illegal as a namespace URI| 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.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||