public class Entity extends Object
Modifier and Type | Field and Description |
---|---|
static int |
GENERAL_ENTITY
An entity with this "type" is a general entity
|
static int |
PARAMETER_ENTITY
An entity with this "type" is a parameter entity
|
Constructor and Description |
---|
Entity(String n,
int t)
Creates an instances of the class
|
Modifier and Type | Method and Description |
---|---|
boolean |
getIncluded()
Get the value of the included flag.
|
Location |
getLocation()
Returns location of the declaration
|
String |
getName()
Returns entity name
|
String |
getPublicId()
Returns public id or null if none available
|
String |
getRelSysId()
Get the value of the relative system identifier.
|
String |
getSystemId()
Returns system id or null if none available
|
int |
getType()
Returns type, which will be either be Entity.PARAMETER_ENTITY (1) or
Entity.GENERAL_ENTITY (2)
|
String |
getValue()
Returns entity value or null if none available
|
boolean |
isExternal()
Returns true if this is an external entity
|
static void |
setBaseUri(URI base)
Set the baseUri, used in computing relSysId.
|
void |
setIncluded(boolean i)
Set the included flag.
|
void |
setLocation(Location loc) |
void |
setPublicId(String pubId) |
void |
setSystemId(String sysId)
Sets the system id and relSysId.
|
void |
setValue(String v)
Sets the value
|
public static final int PARAMETER_ENTITY
public static final int GENERAL_ENTITY
public static void setBaseUri(URI base)
public Location getLocation()
public String getName()
public String getPublicId()
public String getSystemId()
public String getRelSysId()
public int getType()
public String getValue()
public boolean isExternal()
public void setLocation(Location loc)
loc
- public void setPublicId(String pubId)
pubId
- public void setSystemId(String sysId)
sysId
- System idpublic void setValue(String v)
v
- Entity valuepublic void setIncluded(boolean i)
public boolean getIncluded()