Package org.jdom2.located
Class LocatedEntityRef
java.lang.Object
org.jdom2.Content
org.jdom2.EntityRef
org.jdom2.located.LocatedEntityRef
- All Implemented Interfaces:
Serializable,Cloneable,Located,NamespaceAware
An XML entity reference. Methods allow the user to manage its name, public
id, and system id.
- Author:
- Rolf Lear
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jdom2.Content
Content.CType -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLocatedEntityRef(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
Methods inherited from class org.jdom2.EntityRef
clone, detach, getName, getParent, getPublicID, getSystemID, getValue, setName, setParent, setPublicID, setSystemID, toStringMethods inherited from class org.jdom2.Content
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParentElement, hashCode
-
Constructor Details
-
LocatedEntityRef
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
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
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 Details
-
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 -
setColumn
public void setColumn(int col) Description copied from interface:LocatedSet the column (character on the line).
-