|
XML Parser for Java 1.1.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.parser.Child | +--com.ibm.xml.parser.AttDef
This class provides support for a single attribute object that is declared as part of an Element's attribute list declaration in the DTD. Refer to Attlist for a detailed description.
Attlist
,
Child
, Serialized FormField Summary | |
static int |
CDATA
|
static int |
ENTITIES
|
static int |
ENTITY
|
static int |
FIXED
|
static int |
ID
|
static int |
IDREF
|
static int |
IDREFS
|
static int |
IMPLIED
|
static int |
NAME_TOKEN_GROUP
|
static int |
NMTOKEN
|
static int |
NMTOKENS
|
static int |
NOFIXED
|
static int |
NOTATION
|
static int |
REQUIRED
|
static java.lang.String[] |
S_TYPESTR
|
static int |
UNKNOWN
|
Fields inherited from class com.ibm.xml.parser.Child |
ATTDEF,
ATTLIST,
ELEMENT_DECL,
NAME_ATTDEF,
NAME_ATTLIST,
NAME_CDATA,
NAME_COMMENT,
NAME_DOCFRAGMENT,
NAME_DOCUMENT,
NAME_ELEMENT_DECL,
NAME_PSEUDONODE,
NAME_TEXT,
PSEUDONODE |
Constructor Summary | |
AttDef(java.lang.String name)
Constructor. |
Method Summary | |
void |
acceptPost(Visitor visitor)
Implements the accept operation of the visitor design pattern when the end of an AttDef Node is recognized when traversing the document object tree. |
void |
acceptPre(Visitor visitor)
Implements the accept operation of the visitor design pattern when the start of an AttDef Node is recognized when traversing the document object tree. |
boolean |
addElement(java.lang.String token)
Adds the specified token to the end of the list of tokens that can be used as values for this enumerated attribute type; the specified token has no meaning for other attribute types. |
java.lang.Object |
clone()
Clone this attribute definition using the appropriate factory. |
boolean |
contains(java.lang.String token)
Returns whether the specified token is in the list of tokens that can be used as values for this enumerated attribute type; the returned value has no meaning for other attribute types. |
java.lang.String |
elementAt(int index)
Returns the token at the specified index in the list of tokens that can be used as values for this enumerated attribute type; the returned token has no meaning for other attribute types. |
java.util.Enumeration |
elements()
Returns a list of all tokens that can be used as values for this enumerated attribute type; the returned value has no meaning for other attribute types. |
boolean |
equals(Node arg,
boolean deep)
|
int |
getDeclaredType()
Returns the declared type of this attribute in the DTD definition. |
java.lang.String |
getDefaultStringValue()
Returns the default value of this attribute in the DTD definition. |
int |
getDefaultType()
Returns the default type of this attribute's value in the DTD definition. |
java.lang.String |
getName()
Returns the name of this attribute in the DTD definition. |
java.lang.String |
getNodeName()
|
short |
getNodeType()
Returns that this object is an attribute definition Node. |
void |
setDeclaredType(int declaredValueType)
Sets the declared type of this attribute in the DTD definition. |
void |
setDefaultStringValue(java.lang.String value)
Sets the default value of this attribute in the DTD definition. |
void |
setDefaultType(int defaultValueType)
Sets the default type of this attribute's value in the DTD definition. |
void |
setName(java.lang.String name)
Sets the name of this attribute in the DTD definition. |
int |
size()
Returns the number of tokens in the list of tokens that can be used as values for this enumerated attribute type; the returned value has no meaning for other attribute types. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int CDATA
public static final int ID
public static final int IDREF
public static final int IDREFS
public static final int ENTITY
public static final int ENTITIES
public static final int NMTOKEN
public static final int NMTOKENS
public static final int NOTATION
public static final int NAME_TOKEN_GROUP
public static final java.lang.String[] S_TYPESTR
public static final int FIXED
public static final int REQUIRED
public static final int IMPLIED
public static final int NOFIXED
public static final int UNKNOWN
Constructor Detail |
public AttDef(java.lang.String name)
name
- Name of this attribute as defined by the DTD.Method Detail |
public java.lang.Object clone()
This method is defined by Child.
Child.clone()
public boolean equals(Node arg, boolean deep)
deep
- ignored.public short getNodeType()
This method is defined by DOM.
public java.lang.String getNodeName()
public java.lang.String getName()
setName(java.lang.String)
public void setName(java.lang.String name)
name
- Name of this attribute in the DTD definition.getName()
public int getDeclaredType()
setDeclaredType(int)
public void setDeclaredType(int declaredValueType)
declaredValueType
- Declared type of this attribute in the DTD definition.getDeclaredType()
public java.lang.String getDefaultStringValue()
setDefaultStringValue(java.lang.String)
public void setDefaultStringValue(java.lang.String value)
value
- The default value of the attribute in the DTD definition.getDefaultStringValue()
public boolean addElement(java.lang.String token)
token
- Value to add to the list of valid tokens for this enumerated attribute.elementAt(int)
,
contains(java.lang.String)
,
size()
,
elements()
public java.lang.String elementAt(int index)
index
- Index into the list of tokens that can be used as values
for this enumerated attribute type.addElement(java.lang.String)
,
contains(java.lang.String)
,
size()
,
elements()
public boolean contains(java.lang.String token)
token
- Value to check in the list of valid tokens for this enumerated attribute.addElement(java.lang.String)
,
elementAt(int)
,
size()
,
elements()
public int size()
addElement(java.lang.String)
,
elementAt(int)
,
contains(java.lang.String)
,
elements()
public java.util.Enumeration elements()
addElement(java.lang.String)
,
elementAt(int)
,
size()
,
contains(java.lang.String)
public int getDefaultType()
setDefaultType(int)
public void setDefaultType(int defaultValueType)
defaultValueType
- The default type of this attribute in the DTD definition.getDefaultType()
public void acceptPre(Visitor visitor) throws java.lang.Exception
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)Visitor
,
TreeTraversal
,
NonRecursivePreorderTreeTraversal
,
TreeTraversalException
public void acceptPost(Visitor visitor) throws java.lang.Exception
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)Visitor
,
TreeTraversal
,
NonRecursivePreorderTreeTraversal
,
TreeTraversalException
|
XML Parser for Java 1.1.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |