|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.dtd.GeneralEntity
public class GeneralEntity
Implementation of DTD General Entity declaration specification.
Constructor Summary | |
---|---|
GeneralEntity()
Default constructor. |
|
GeneralEntity(DTDdocument document,
java.lang.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. |
java.lang.String |
getName()
Returns the name of the general entity. |
java.lang.String |
getNotation()
Returns name of associated notation, if external entity, null otherwise. |
java.lang.String |
getPubIdentifier()
Returns public identifier, if EXTERNAL_PUBLIC entity, null otherwise. |
java.lang.String |
getSysIdentifier()
Returns system identifier, if EXTERNAL_PUBLIC or EXTERNAL_SYSTEM entity, null otherwise. |
java.lang.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(java.lang.String pubId,
java.lang.String sysId)
Sets the general entity to EXTERNAL_PUBLIC. |
void |
setExternalSystem(java.lang.String sysId)
Sets the general entity to EXTERNAL_SYSTEM. |
void |
setNDATA(java.lang.String notationName)
Sets the associated notation. |
void |
setValue(java.lang.String value)
Sets the value (replacement text) of the general entity, making it internal parsed entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneralEntity()
public GeneralEntity(DTDdocument document, java.lang.String name)
document
- must not be null.name
- must not be null or equal to empty String.Method Detail |
---|
public java.lang.String getName()
public DTDdocument getDocument()
public void setValue(java.lang.String value)
value
- must not be null.public boolean isInternal()
public java.lang.String getValue()
public void setExternalPublic(java.lang.String pubId, java.lang.String sysId)
pubId
- public identifier - must not be null.sysId
- system identifier - must not be null.public boolean isExternalPublic()
public void setExternalSystem(java.lang.String sysId)
sysId
- system identifier - must not be null.public boolean isExternalSystem()
public java.lang.String getSysIdentifier()
public java.lang.String getPubIdentifier()
public void setNDATA(java.lang.String notationName)
notationName
- - must not be null or equal to empty String.public boolean isExternalUnparsed()
public java.lang.String getNotation()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |