org.jdom
Class EntityRef
- Cloneable, Serializable
An XML entity reference. Methods allow the user to manage its name, public
id, and system id.
$Revision: 1.21 $, $Date: 2004/02/27 11:32:57 $- Brett McLaughlin
- Jason Hunter
- Philip Nelson
protected String | name - The name of the
EntityRef
|
protected String | publicID - The PublicID of the
EntityRef
|
protected String | systemID - The SystemID of the
EntityRef
|
EntityRef() - Default, no-args constructor for implementations to use if needed.
|
EntityRef(String name) - This will create a new
EntityRef with the supplied name.
|
EntityRef(String name, String systemID) - This will create a new
EntityRef
with the supplied name and system id.
|
EntityRef(String name, String publicID, String systemID) - This will create a new
EntityRef
with the supplied name, public id, and system id.
|
String | getName() - This returns the name of the
EntityRef .
|
String | getPublicID() - This will return the publid ID of this
EntityRef .
|
String | getSystemID() - This will return the system ID of this
EntityRef .
|
String | getValue() - Returns the empty string since entity references don't have an XPath
1.0 string value.
|
EntityRef | setName(String name) - This will set the name of this
EntityRef .
|
EntityRef | setPublicID(String publicID) - This will set the public ID of this
EntityRef .
|
EntityRef | setSystemID(String systemID) - This will set the system ID of this
EntityRef .
|
String | toString() - This returns a
String representation of the
EntityRef , suitable for debugging.
|
name
protected String name
The name of the EntityRef
publicID
protected String publicID
The PublicID of the EntityRef
systemID
protected String systemID
The SystemID of the EntityRef
EntityRef
protected EntityRef()
Default, no-args constructor for implementations to use if needed.
EntityRef
public EntityRef(String name)
This will create a new EntityRef
with the supplied name.
name
- String
name of element.
EntityRef
public EntityRef(String name,
String systemID)
This will create a new EntityRef
with the supplied name and system id.
name
- String
name of element.systemID
- system id of the entity reference being constructed
EntityRef
public EntityRef(String name,
String publicID,
String systemID)
This will create a new 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
getName
public String getName()
This returns the name of the EntityRef
.
getPublicID
public String getPublicID()
This will return the publid ID of this EntityRef
.
If there is no public ID, then this returns null
.
- public ID of this
EntityRef
getSystemID
public String getSystemID()
This will return the system ID of this EntityRef
.
If there is no system ID, then this returns null
.
- system ID of this
EntityRef
getValue
public String getValue()
Returns the empty string since entity references don't have an XPath
1.0 string value.
- getValue in interface Content
setName
public EntityRef setName(String name)
This will set the name of this EntityRef
.
name
- new name of the entity
setPublicID
public EntityRef setPublicID(String publicID)
This will set the public ID of this EntityRef
.
setSystemID
public EntityRef setSystemID(String systemID)
This will set the system ID of this EntityRef
.
toString
public String toString()
This returns a String
representation of the
EntityRef
, suitable for debugging.
String
- information about the
EntityRef
Copyright B) 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.