com.wutka.dtd

Class DTDEntity

Implemented Interfaces:
DTDOutput

public class DTDEntity
extends Object
implements DTDOutput

Represents an Entity defined in a DTD
Version:
$Revision: 1.18 $ $Date: 2002/07/31 00:19:10 $ by $Author: wutka $
Author:
Mark Wutka

Field Summary

Object
defaultLocation
DTDExternalID
externalID
boolean
isParsed
String
name
String
ndata
String
value

Constructor Summary

DTDEntity()
DTDEntity(String aName)
DTDEntity(String aName, Object aDefaultLocation)

Method Summary

boolean
equals(Object ob)
DTDExternalID
getExternalID()
Returns the external ID for the entity
String
getExternalId()
String
getName()
Returns the name of this entity
String
getNdata()
Returns the entity ndata
Reader
getReader()
Reader
getReader(String entityName)
String
getValue()
Returns the entity value
boolean
isParsed()
Returns the isParsed flag
void
setExternalID(DTDExternalID anExternalID)
Sets the external ID for the entity
void
setIsParsed(boolean flag)
Sets the isParsed flag
void
setName(String aName)
Sets the name of this entity
void
setNdata(String anNdata)
Sets the entity ndata
void
setValue(String aValue)
Sets the entity value
void
write(PrintWriter out)
Writes out an entity declaration for this entity

Field Details

defaultLocation

public Object defaultLocation

externalID

public DTDExternalID externalID

isParsed

public boolean isParsed

name

public String name

ndata

public String ndata

value

public String value

Constructor Details

DTDEntity

public DTDEntity()

DTDEntity

public DTDEntity(String aName)

DTDEntity

public DTDEntity(String aName,
                 Object aDefaultLocation)

Method Details

equals

public boolean equals(Object ob)

getExternalID

public DTDExternalID getExternalID()
Returns the external ID for the entity

getExternalId

public String getExternalId()

getName

public String getName()
Returns the name of this entity

getNdata

public String getNdata()
Returns the entity ndata

getReader

public Reader getReader()
            throws IOException

getReader

public Reader getReader(String entityName)

getValue

public String getValue()
Returns the entity value

isParsed

public boolean isParsed()
Returns the isParsed flag

setExternalID

public void setExternalID(DTDExternalID anExternalID)
Sets the external ID for the entity

setIsParsed

public void setIsParsed(boolean flag)
Sets the isParsed flag

setName

public void setName(String aName)
Sets the name of this entity

setNdata

public void setNdata(String anNdata)
Sets the entity ndata

setValue

public void setValue(String aValue)
Sets the entity value

write

public void write(PrintWriter out)
            throws IOException
Writes out an entity declaration for this entity
Specified by:
write in interface DTDOutput

Copyright (c) 2001 Mark Wutka.