org.exolab.castor.xml.dtd
public class GeneralEntity extends Object
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:20 $
Constructor Summary | |
---|---|
GeneralEntity()
Default constructor. | |
GeneralEntity(DTDdocument document, String name)
Constructor, setting name and owning DTD document of the general entity. |
Method Summary | |
---|---|
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. |
Parameters: document must not be null. name must not be null or equal to empty String.
Parameters: pubId public identifier - must not be null. sysId system identifier - must not be null.
Parameters: sysId system identifier - must not be null.
Parameters: notationName - must not be null or equal to empty String.
Parameters: value must not be null.