com.thaiopensource.pullax
Interface XmlAttributeItem
- All Superinterfaces:
- XmlItem
- public interface XmlAttributeItem
- extends XmlItem
Fields inherited from interface com.thaiopensource.pullax.XmlItem |
ATTRIBUTE, BUILTIN_ENTITY_REFERENCE, CDATA_SECTION, CHARACTER_REFERENCE, COMMENT, DOCUMENT_TYPE, EMPTY_ELEMENT, END_ELEMENT, END_ENTITY, PROCESSING_INSTRUCTION, START_ELEMENT, START_ENTITY, TEXT, TOP_LEVEL_WHITESPACE, UNEXPANDED_ENTITY_REFERENCE |
getAttributeIndex
public int getAttributeIndex()
- Gets the index of this attribute within all the attributes
of the element. The first attribute has index 0. The current
item must be an attribute.
- Returns:
- the index of the current attribute
isSpecified
public boolean isSpecified()
- Indicates whether this attribute was specified in the instance
rather than defaulted from the DTD. If information about whether
the attribute was specified is not available, returns
true
.
- Returns:
true
if this attribute was specified in the instance;
false
otherwise
isNamespaceDecl
public boolean isNamespaceDecl()
- Determines whether this attribute represents a
namespace declaration.
- Returns:
true
if this attribute represents a
namespace declaration, false
otherwise
getAttributeType
public XmlAttributeType getAttributeType()
- Returns null if the attribute is not declared in the DTD.
scanUnnormalizedValue
public XmlScanner scanUnnormalizedValue()
- Returns a scanner for the unnormalized value of this attribute.
- Returns:
- an XmlScanner for the unnormalized value of this attribute