|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.conradroche.matra.decl.Entity
CR: TODO: Add javadoc for Entity
Field Summary | |
static int |
EXT_ID_NONE
|
static int |
EXT_ID_PUBLIC
|
static int |
EXT_ID_SYSTEM
|
static int |
GLOBAL_ENTITY
|
static int |
PARAMETER_ENTITY
|
Constructor Summary | |
Entity()
Entity constructor. |
|
Entity(java.lang.String content)
Insert the method's description here. |
|
Entity(java.lang.String content,
java.util.Hashtable EntityList)
Insert the method's description here. |
|
Entity(java.lang.String name,
java.lang.String value,
int type)
Entity constructor. |
Method Summary | |
java.lang.String |
getEntityName()
Insert the method's description here. |
int |
getExternalIDType()
Insert the method's description here. |
java.lang.String |
getLiteralValue()
Insert the method's description here. |
java.lang.String |
getPublicIdentifier()
Insert the method's description here. |
java.lang.String |
getReplacementText()
Returns the replacement text for this Entity. |
java.lang.String |
getResolvedValue(java.util.Hashtable EntityList)
Insert the method's description here. |
java.lang.String |
getSystemIdentifier()
Insert the method's description here. |
int |
getType()
Insert the method's description here. |
boolean |
hasPublicIdentifier()
Returns true if the
Public Identifier is specified. |
boolean |
hasSystemIdentifier()
Returns true if the
System Identifier is specified. |
boolean |
isExternalEntity()
Returns true if this entity is an
external entity; false otherwise. |
boolean |
isGeneralEntity()
Returns true if the Entity is
a General Entity and false otherwise. |
boolean |
isInternalEntity()
Returns true if this entity is an
internal entity; false otherwise. |
boolean |
isParameterEntity()
Returns true if the Entity is
a Parameter Entity and false otherwise. |
boolean |
isParsedEntity()
Returns true if this entity is an
parsed entity; false otherwise. |
boolean |
isResolved()
Insert the method's description here. |
boolean |
isUnparsedEntity()
Returns true if this entity is an
parsed entity; false otherwise. |
void |
resolveValue(java.util.Hashtable entityList)
Insert the method's description here. |
void |
setEntityName(java.lang.String newName)
Insert the method's description here. |
void |
setLiteralValue(java.lang.String newValue)
Insert the method's description here. |
void |
setPublicIdentifier(java.lang.String publicId)
Sets the Public Identifier. |
void |
setSystemIdentifier(java.lang.String systemId)
Sets the System Identifier. |
void |
setType(int newType)
Insert the method's description here. |
java.lang.String |
toString()
Insert the method's description here. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PARAMETER_ENTITY
public static final int GLOBAL_ENTITY
public static final int EXT_ID_NONE
public static final int EXT_ID_SYSTEM
public static final int EXT_ID_PUBLIC
Constructor Detail |
public Entity()
public Entity(java.lang.String name, java.lang.String value, int type)
public Entity(java.lang.String content) throws DTDException
content
- java.lang.Stringpublic Entity(java.lang.String content, java.util.Hashtable EntityList) throws DTDException
content
- java.lang.StringMethod Detail |
public int getExternalIDType()
public java.lang.String getEntityName()
getEntityName
in interface Entity
public java.lang.String getPublicIdentifier()
getPublicIdentifier
in interface ExternalID
public void setPublicIdentifier(java.lang.String publicId)
setPublicIdentifier
in interface ExternalID
The
- Public Identifierpublic java.lang.String getResolvedValue(java.util.Hashtable EntityList)
public java.lang.String getSystemIdentifier()
getSystemIdentifier
in interface ExternalID
public void setSystemIdentifier(java.lang.String systemId)
setSystemIdentifier
in interface ExternalID
systemId
- The System Identifierpublic int getType()
public java.lang.String getLiteralValue()
getLiteralValue
in interface Entity
public java.lang.String getReplacementText()
getReplacementText
in interface Entity
public boolean isInternalEntity()
true
if this entity is an
internal entity; false
otherwise.
From the XML 1.0 Specifications -
[Definition: If the entity definition is an
EntityValue, the defined entity is called an
internal entity. There is no separate physical
storage object, and the content of the entity
is given in the declaration.] Note that some
processing of entity and character references in
the literal entity literalValue may be required to
produce the correct replacement textisInternalEntity
in interface Entity
true
if this entity is an
internal entity; false
otherwise.public boolean isExternalEntity()
true
if this entity is an
external entity; false
otherwise.
Add javadoc for Entity::isExternalEntity
From the XML 1.0 Specifications -
Definition: If the entity is not internal,
it is an external entityisExternalEntity
in interface Entity
true
if this entity is an
external entity; false
otherwise.public boolean isParsedEntity()
true
if this entity is an
parsed entity; false
otherwise.
From XML 1.0 Specifications -
[Definition: A parsed entity's contents are
referred to as its replacement text; this text
is considered an integral part of the document.]isParsedEntity
in interface Entity
true
if this entity is an
parsed entity; false
otherwise.public boolean isUnparsedEntity()
true
if this entity is an
parsed entity; false
otherwise.
From XML 1.0 Specifications -
[Definition: An unparsed entity is a resource
whose contents may or may not be text, and if
text, may be other than XML. Each unparsed
entity has an associated notation, identified
by name. Beyond a requirement that an XML
processor make the identifiers for the entity
and notation available to the application,
XML places no constraints on the contents of
unparsed entities.]isUnparsedEntity
in interface Entity
true
if this entity is an
parsed entity; false
otherwise.public boolean isResolved()
public void resolveValue(java.util.Hashtable entityList) throws DTDException
newValue
- java.lang.Stringpublic void setEntityName(java.lang.String newName)
setEntityName
in interface Entity
newName
- java.lang.Stringpublic void setType(int newType)
newType
- intpublic void setLiteralValue(java.lang.String newValue)
setLiteralValue
in interface Entity
newValue
- java.lang.Stringpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean isGeneralEntity()
Entity
true
if the Entity is
a General Entity and false
otherwise.isGeneralEntity
in interface Entity
com.conradroche.dtd.decl.Entity
true
for General Entity
and false
otherwise.public boolean isParameterEntity()
Entity
true
if the Entity is
a Parameter Entity and false
otherwise.isParameterEntity
in interface Entity
com.conradroche.dtd.decl.Entity
true
for Parameter Entity
and false
otherwise.public boolean hasSystemIdentifier()
ExternalID
true
if the
System Identifier is specified.hasSystemIdentifier
in interface ExternalID
com.conradroche.dtd.decl.ExternalID
true
if the
System Identifier is specified
false
otherwise.public boolean hasPublicIdentifier()
ExternalID
true
if the
Public Identifier is specified.hasPublicIdentifier
in interface ExternalID
com.conradroche.dtd.decl.ExternalID
true
if the
Public Identifier is specified
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |