com.japisoft.dtdparser.node
Class EntityDTDNode
java.lang.Object
com.japisoft.dtdparser.node.DTDNode
com.japisoft.dtdparser.node.EntityDTDNode
- public class EntityDTDNode
- extends DTDNode
Created Sat Feb 15 11:21:34 2003
Comments
- Version:
- 1.0
- Author:
- your user name (your user mail)
- See Also:
DTDNode
Method Summary |
java.lang.String |
getName()
|
int |
getType()
|
java.lang.String |
getValue()
|
boolean |
isParameter()
|
void |
setName(java.lang.String name)
Set the name of the entity |
void |
setParameter(boolean parameter)
Set this entity as parameter : example <! |
void |
setType(int type)
Set the entity nature : INTERNAL, PUBLIC or SYSTEM |
void |
setValue(java.lang.String value)
Set the value of the entity |
java.lang.String |
toString()
|
Methods inherited from class com.japisoft.dtdparser.node.DTDNode |
addDTDNode, getDTDNodeAt, getDTDNodeCount, getDTDNodeForType, getDTDNodeIndex, getDTDNodes, getDTDParentNode, getNodeComment, getNodeType, getRoot, isAttribute, isComment, isElement, isElementRef, isElementSet, isEmpty, isEntity, isRoot, removeDTDNode, setDTDParentNode, setNodeComment, setNodeType, setRoot |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INTERNAL_ENTITY
public static final int INTERNAL_ENTITY
- See Also:
- Constant Field Values
SYSTEM_ENTITY
public static final int SYSTEM_ENTITY
- See Also:
- Constant Field Values
PUBLIC_ENTITY
public static final int PUBLIC_ENTITY
- See Also:
- Constant Field Values
EntityDTDNode
public EntityDTDNode()
EntityDTDNode
public EntityDTDNode(java.lang.String name,
java.lang.String value)
setParameter
public void setParameter(boolean parameter)
- Set this entity as parameter : example <!ENTITY A % "B">
isParameter
public boolean isParameter()
- Returns:
- true if this entity is a parameter for other DTD part
setType
public void setType(int type)
- Set the entity nature : INTERNAL, PUBLIC or SYSTEM
getType
public int getType()
- Returns:
- the entity nature
setName
public void setName(java.lang.String name)
- Set the name of the entity
getName
public java.lang.String getName()
- Returns:
- the name of the entity
setValue
public void setValue(java.lang.String value)
- Set the value of the entity
getValue
public java.lang.String getValue()
- Returns:
- the value of the entity
toString
public java.lang.String toString()