public interface Descriptor
The idea is to give a programmer the ability to inspect the various tags and attribute values without having to parse the tags. This is useful in that some XML based documents do post-parser processing that can then be handled appropriately by implementations of this interface.
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAttributeList()
Returns an array of attribute names for the current node.
|
java.lang.String |
getAttributeValue(java.lang.String attr)
Returns the value of the named attribute.
|
java.util.Enumeration |
getChildren()
Returns the Descriptors of the children of this node.
|
Descriptor |
getDescriptor(java.lang.String qualifiedName)
Returns the Descriptor for another element contained within the same document.
|
java.lang.String |
getName()
Returns the simple name of the Descriptor as specified on the name= attribute of its
associated tag.
|
java.lang.String |
getQualifiedName()
Returns the qualified name of the Descriptor.
|
java.lang.String |
getTagName()
Returns the tag name of the Descriptor.
|
boolean |
hasChildren()
Returns true if this Descriptor has childen.
|
java.lang.String[] getAttributeList()
java.lang.String getAttributeValue(java.lang.String attr)
attr
- java.util.Enumeration getChildren()
Descriptor getDescriptor(java.lang.String qualifiedName)
qualifiedName
- java.lang.String getName()
java.lang.String getQualifiedName()
java.lang.String getTagName()
boolean hasChildren()