public class GeneralEntity extends Object
Constructor and Description |
---|
GeneralEntity()
Default constructor.
|
GeneralEntity(DTDdocument document,
String name)
Constructor, setting name and owning DTD document of the general entity.
|
Modifier and Type | Method and Description |
---|---|
DTDdocument |
getDocument()
Return DTD document owning this General Entity declaration.
|
String |
getName()
Returns the name of the general entity.
|
String |
getNotation()
Returns name of associated notation, if external entity,
null otherwise.
|
String |
getPubIdentifier()
Returns public identifier, if EXTERNAL_PUBLIC entity,
null otherwise.
|
String |
getSysIdentifier()
Returns system identifier, if EXTERNAL_PUBLIC or
EXTERNAL_SYSTEM entity, null otherwise.
|
String |
getValue()
Returns the value of the entity (replacement text) if internal entity,
null otherwise.
|
boolean |
isExternalPublic()
True if EXTERNAL_PUBLIC entity, false otherwise.
|
boolean |
isExternalSystem()
True if EXTERNAL_SYSTEM entity, false otherwise.
|
boolean |
isExternalUnparsed()
True if external unparsed entity, that is if external and
associated notation name is specified, false otherwise.
|
boolean |
isInternal()
True if internal entity, false otherwise.
|
void |
setExternalPublic(String pubId,
String sysId)
Sets the general entity to EXTERNAL_PUBLIC.
|
void |
setExternalSystem(String sysId)
Sets the general entity to EXTERNAL_SYSTEM.
|
void |
setNDATA(String notationName)
Sets the associated notation.
|
void |
setValue(String value)
Sets the value (replacement text) of the general entity, making it
internal parsed entity.
|
public GeneralEntity()
public GeneralEntity(DTDdocument document, String name)
document
- must not be null.name
- must not be null or equal to empty String.public String getName()
public DTDdocument getDocument()
public void setValue(String value)
value
- must not be null.public boolean isInternal()
public String getValue()
public void setExternalPublic(String pubId, String sysId)
pubId
- public identifier - must not be null.sysId
- system identifier - must not be null.public boolean isExternalPublic()
public void setExternalSystem(String sysId)
sysId
- system identifier - must not be null.public boolean isExternalSystem()
public String getSysIdentifier()
public String getPubIdentifier()
public void setNDATA(String notationName)
notationName
- - must not be null or equal to empty String.public boolean isExternalUnparsed()
public String getNotation()
Copyright © 2013. All rights reserved.