com.sun.xml.parser
Interface AttributeListEx
- public abstract interface AttributeListEx
- extends AttributeList
This interface extends the SAX AttributeList interface to expose
information needed to support DOM Level 1 features used in document
editing, and detection of ID attributes which are declared for
an element.
Method Summary |
java.lang.String |
getDefault(int i)
Returns the default value of the specified attribute, or null
if no default value is known. |
java.lang.String |
getIdAttributeName()
Returns the name of the ID attribute for the associated element,
if one was declared. |
boolean |
isSpecified(int i)
Returns true if the attribute was specified in the document. |
isSpecified
public boolean isSpecified(int i)
- Returns true if the attribute was specified in the document.
This method only relates to document editing; there is no
difference in semantics between explicitly specifying values
of attributes in a DTD vs another part of the document.
- Parameters:
i
- the index of the attribute in the list.
getDefault
public java.lang.String getDefault(int i)
- Returns the default value of the specified attribute, or null
if no default value is known. Default values may be explicitly
specified in documents; in fact, for standalone documents, they
must be so specified. If isSpecified is false, the
value returned by this method will be what getValue
returns.
- Parameters:
i
- the index of the attribute in the list.
getIdAttributeName
public java.lang.String getIdAttributeName()
- Returns the name of the ID attribute for the associated element,
if one was declared. If such an ID value was provided, this
name can be inferred from methods in the base class; but if none
was provided, this will be the only way this name can be determined.
Submit Feedback to xml-feedback@java.sun.com
Copyright © 1998-1999 Sun Microsystems, Inc. All Rights Reserved.
Sun Microsystems, Inc.
901 San Antonio Road
Palo Alto, California, 94303, U.S.A.