Matra DTD Parser 0.8b

com.conradroche.matra.decl
Class GeneralEntity

java.lang.Object
  |
  +--com.conradroche.matra.decl.Entity
        |
        +--com.conradroche.matra.decl.GeneralEntity
All Implemented Interfaces:
Entity, ExternalID, GeneralEntity

public class GeneralEntity
extends Entity
implements GeneralEntity

Class to hold a General Entity declaration.

From the XML 1.0 Specifications -
[Definition: General entities are entities for use within the document content.]

Author:
Conrad Roche

Fields inherited from class com.conradroche.matra.decl.Entity
EXT_ID_NONE, EXT_ID_PUBLIC, EXT_ID_SYSTEM, GLOBAL_ENTITY, PARAMETER_ENTITY
 
Constructor Summary
GeneralEntity()
          GeneralEntity Constructor.
GeneralEntity(String content)
          GeneralEntity Constructor.
GeneralEntity(String content, Hashtable EntityList)
          GeneralEntity Constructor.
GeneralEntity(String name, String value, int type)
          GeneralEntity Constructor.
 
Method Summary
 String getNotationName()
          Returns the Notation name of this General Entity, if present.
 void setNotationName(String name)
          Sets the Notation name, is any, associated with this Entity.
 
Methods inherited from class com.conradroche.matra.decl.Entity
getEntityName, getExternalIDType, getLiteralValue, getPublicIdentifier, getReplacementText, getResolvedValue, getSystemIdentifier, getType, hasPublicIdentifier, hasSystemIdentifier, isExternalEntity, isGeneralEntity, isInternalEntity, isParameterEntity, isParsedEntity, isResolved, isUnparsedEntity, resolveValue, setEntityName, setLiteralValue, setPublicIdentifier, setSystemIdentifier, setType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.conradroche.dtd.decl.Entity
getEntityName, getLiteralValue, getReplacementText, isExternalEntity, isGeneralEntity, isInternalEntity, isParameterEntity, isParsedEntity, isUnparsedEntity, setEntityName, setLiteralValue
 
Methods inherited from interface com.conradroche.dtd.decl.ExternalID
getPublicIdentifier, getSystemIdentifier, hasPublicIdentifier, hasSystemIdentifier, setPublicIdentifier, setSystemIdentifier
 

Constructor Detail

GeneralEntity

public GeneralEntity()
GeneralEntity Constructor.

GeneralEntity

public GeneralEntity(String name,
                     String value,
                     int type)
GeneralEntity Constructor.
Parameters:
name - The name of the entity.
value - The value of the enetity.
type - an int specifying the entity type.

GeneralEntity

public GeneralEntity(String content)
              throws DTDException
GeneralEntity Constructor.
Parameters:
content - The entity declaration.
Throws:
DTDException - If any syntax error is encountered.

GeneralEntity

public GeneralEntity(String content,
                     Hashtable EntityList)
              throws DTDException
GeneralEntity Constructor.
Parameters:
content - The entity declaration.
EntityList - a Hashtable object
Throws:
DTDException - If any syntax error is encountered.
Method Detail

getNotationName

public String getNotationName()
Returns the Notation name of this General Entity, if present.
Specified by:
getNotationName in interface GeneralEntity
Returns:
The Notation name.
See Also:
setNotationName(java.lang.String)

setNotationName

public void setNotationName(String name)
Sets the Notation name, is any, associated with this Entity.
Specified by:
setNotationName in interface GeneralEntity
Parameters:
name - The Notation name.
See Also:
GeneralEntity.setNotationName(java.lang.String), getNotationName()

Matra DTD Parser 0.8b