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 |
---|---|
String[] |
getAttributeList()
Returns an array of attribute names for the current node.
|
String |
getAttributeValue(String attr)
Returns the value of the named attribute.
|
Enumeration |
getChildren()
Returns the Descriptors of the children of this node.
|
Descriptor |
getDescriptor(String qualifiedName)
Returns the Descriptor for another element contained within the same document.
|
String |
getName()
Returns the simple name of the Descriptor as specified on the name= attribute of its
associated tag.
|
String |
getQualifiedName()
Returns the qualified name of the Descriptor.
|
String |
getTagName()
Returns the tag name of the Descriptor.
|
boolean |
hasChildren()
Returns true if this Descriptor has childen.
|
String[] getAttributeList()
String getAttributeValue(String attr)
Enumeration getChildren()
Descriptor getDescriptor(String qualifiedName)
String getName()
String getQualifiedName()
String getTagName()
boolean hasChildren()