ORG.oclc.xml.parser
Class Entity
java.lang.Object
|
+--ORG.oclc.xml.om.ElementImpl
|
+--ORG.oclc.xml.parser.Entity
- public class Entity
- extends ElementImpl
This class implements an Entity
object representing an XML internal
or external entity as defined in the XML Document Type Definition (DTD).
Methods inherited from class ORG.oclc.xml.om.ElementImpl |
addChild,
addChild,
getAttribute,
getChild,
getChildren,
getElements,
getParent,
getText,
getType,
isAttributeQualified,
numAttributes,
numElements,
qualifyName,
removeAttribute,
removeAttribute,
removeChild,
saveAttributes,
setAttribute,
setAttribute,
setParent,
toSchema,
toString |
setText
public void setText(String text)
- Changes the text of entity.
- Parameters:
text
- The new text of the entity.- Overrides:
- setText in class ElementImpl
getAttribute
public Object getAttribute(Name attName)
- Overrides:
- getAttribute in class ElementImpl
getAttributes
public Enumeration getAttributes()
- Overrides:
- getAttributes in class ElementImpl
save
public void save(XMLOutputStream o)
throws IOException
- Saves the entity to the given output stream with indenting and new lines.
- Parameters:
o
- The output stream.- Throws:
- IOException - if there is a problem writing to the output stream.
- Overrides:
- save in class ElementImpl
saveEntity
public void saveEntity(XMLOutputStream o)
throws IOException
- Saves the entity to the given output stream.
- Parameters:
o
- The output stream.- Throws:
- IOException - if there is a problem writing to the output
stream.
getName
public Name getName()
- Retrieves the name of the entity.
- Returns:
- the
Name
object containing the entity name.
getTagName
public Name getTagName()
- Overrides:
- getTagName in class ElementImpl