Package com.sun.xml.rpc.sp
Interface AttributesEx
-
- All Superinterfaces:
Attributes
public interface AttributesEx extends Attributes
This interface extends the SAX Attributes 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.- Author:
- David Brownell, JAX-RPC RI Development Team
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDefault(int i)
Returns the default value of the specified attribute, or null if no default value is known.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.
-
-
-
Method Detail
-
isSpecified
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
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
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.
-
-