Package org.jdom.located
Class LocatedEntityRef
- java.lang.Object
-
- org.jdom.Content
-
- org.jdom.EntityRef
-
- org.jdom.located.LocatedEntityRef
-
- All Implemented Interfaces:
Serializable,Cloneable,Located,NamespaceAware
public class LocatedEntityRef extends EntityRef implements Located
An XML entity reference. Methods allow the user to manage its name, public id, and system id.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jdom.Content
Content.CType
-
-
Constructor Summary
Constructors Constructor Description LocatedEntityRef(String name)This will create a newEntityRefwith the supplied name.LocatedEntityRef(String name, String systemID)This will create a newEntityRefwith the supplied name and system id.LocatedEntityRef(String name, String publicID, String systemID)This will create a newEntityRefwith the supplied name, public id, and system id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()Get the column (character on the line).intgetLine()Get the line numbervoidsetColumn(int col)Set the column (character on the line).voidsetLine(int line)Set the line number-
Methods inherited from class org.jdom.EntityRef
clone, detach, getName, getParent, getPublicID, getSystemID, getValue, setName, setParent, setPublicID, setSystemID, toString
-
Methods inherited from class org.jdom.Content
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParentElement, hashCode
-
-
-
-
Constructor Detail
-
LocatedEntityRef
public LocatedEntityRef(String name)
This will create a newEntityRefwith the supplied name.- Parameters:
name-Stringname of element.- Throws:
IllegalNameException- if the given name is not a legal XML name.
-
LocatedEntityRef
public LocatedEntityRef(String name, String systemID)
This will create a newEntityRefwith the supplied name and system id.- Parameters:
name-Stringname of element.systemID- system id of the entity reference being constructed- Throws:
IllegalNameException- if the given name is not a legal XML name.IllegalDataException- if the given system ID is not a legal system literal.
-
LocatedEntityRef
public LocatedEntityRef(String name, String publicID, String systemID)
This will create a newEntityRefwith the supplied name, public id, and system id.- Parameters:
name-Stringname of element.publicID- public id of the entity reference being constructedsystemID- system id of the entity reference being constructed- Throws:
IllegalDataException- if the given system ID is not a legal system literal or the the given public ID is not a legal public IDIllegalNameException- if the given name is not a legal XML name.
-
-
Method Detail
-
getLine
public int getLine()
Description copied from interface:LocatedGet the line number
-
getColumn
public int getColumn()
Description copied from interface:LocatedGet the column (character on the line).
-
setLine
public void setLine(int line)
Description copied from interface:LocatedSet the line number
-
-