All Packages Class Hierarchy This Package Previous Next Index
Interface org.xml.sax.AttributeMap
- public interface AttributeMap
A map of attributes for the current element.
This interface is part of the Java implementation of SAX,
the Simple API for XML. It is free for both commercial and
non-commercial use, and is distributed with no warrantee, real
or implied.
This map will be valid only during the invocation of the
startElement
callback: if you need to use attribute
information elsewhere, you will need to make your own copies.
- Author:
- David Megginson, Microstar Software Ltd.
- See Also:
- startElement
-
getAttributeNames()
- Find the names of all available attributes for an element.
-
getEntityPublicID(String)
- Get the public identifier for an ENTITY attribute.
-
getEntitySystemID(String)
- Get the system identifer for an ENTITY attribute.
-
getNotationName(String)
- Get the notation name for an ENTITY attribute.
-
getNotationPublicID(String)
- Get the notation public ID for an ENTITY or NOTATION attribute.
-
getNotationSystemID(String)
- Get the notation system ID for an ENTITY or NOTATION attribute.
-
getValue(String)
- Get the value of an attribute as a String.
-
isEntity(String)
- Check if an attribute value is the name of an entity.
-
isId(String)
- Check if an attribute value is a unique identifier.
-
isIdref(String)
- Check if an attribute value is a reference to an ID.
-
isNotation(String)
- Check if an attribute value is the name of a notation.
getAttributeNames
public abstract Enumeration getAttributeNames()
- Find the names of all available attributes for an element.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- An enumeration of zero or more Strings.
- See Also:
- Enumeration, startElement
getValue
public abstract String getValue(String attributeName)
- Get the value of an attribute as a String.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- The value as a String, or null if the attribute has no value.
- See Also:
- startElement
isEntity
public abstract boolean isEntity(String aname)
- Check if an attribute value is the name of an entity.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- true if the attribute is an entity name.
- See Also:
- getEntityPublicID, getEntitySystemID, getNotationName, getNotationPublicID, getNotationSystemID, startElement
isNotation
public abstract boolean isNotation(String aname)
- Check if an attribute value is the name of a notation.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- true if the attribute is a notation name.
- See Also:
- getNotationPublicID, getNotationSystemID, startElement
isId
public abstract boolean isId(String aname)
- Check if an attribute value is a unique identifier.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- true if the attribute is a unique identifier.
- See Also:
- startElement
isIdref
public abstract boolean isIdref(String aname)
- Check if an attribute value is a reference to an ID.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- true if the attribute is a reference to an ID.
- See Also:
- startElement
getEntityPublicID
public abstract String getEntityPublicID(String aname)
- Get the public identifier for an ENTITY attribute.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- The public identifier or null if there is none (or if
the attribute value is not an entity name)
- See Also:
- isEntity
getEntitySystemID
public abstract String getEntitySystemID(String aname)
- Get the system identifer for an ENTITY attribute.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- The system identifier or null if there is none (or if
the attribute value is not an entity name)
- See Also:
- isEntity
getNotationName
public abstract String getNotationName(String aname)
- Get the notation name for an ENTITY attribute.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- The notation name or null if there is none (or if
the attribute value is not an entity name)
- See Also:
- isEntity
getNotationPublicID
public abstract String getNotationPublicID(String aname)
- Get the notation public ID for an ENTITY or NOTATION attribute.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- The public identifier or null if there is none (or if
the attribute value is not an entity or notation name)
- See Also:
- isEntity, isNotation
getNotationSystemID
public abstract String getNotationSystemID(String aname)
- Get the notation system ID for an ENTITY or NOTATION attribute.
This applies to the current element, and can be called only
during an invocation of startElement
.
- Returns:
- The system identifier or null if there is none (or if
the attribute value is not an entity or notation name)
- See Also:
- isEntity, isNotation
All Packages Class Hierarchy This Package Previous Next Index