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

Method Index

 o getAttributeNames()
Find the names of all available attributes for an element.
 o getEntityPublicID(String)
Get the public identifier for an ENTITY attribute.
 o getEntitySystemID(String)
Get the system identifer for an ENTITY attribute.
 o getNotationName(String)
Get the notation name for an ENTITY attribute.
 o getNotationPublicID(String)
Get the notation public ID for an ENTITY or NOTATION attribute.
 o getNotationSystemID(String)
Get the notation system ID for an ENTITY or NOTATION attribute.
 o getValue(String)
Get the value of an attribute as a String.
 o isEntity(String)
Check if an attribute value is the name of an entity.
 o isId(String)
Check if an attribute value is a unique identifier.
 o isIdref(String)
Check if an attribute value is a reference to an ID.
 o isNotation(String)
Check if an attribute value is the name of a notation.

Methods

 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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