javax.xml.validation
Class TypeInfoProvider
java.lang.Object
javax.xml.validation.TypeInfoProvider
public abstract class TypeInfoProvider
extends java.lang.Object
Provides access to the PSVI type info supplied by
ValidatorHandler
.
- 1.3
TypeInfo | getAttributeTypeInfo(int index) - Returns the type information for the specified attribute of the current
element.
|
TypeInfo | getElementTypeInfo() - Returns the type information for the current element.
|
boolean | isIdAttribute(int index) - Indicates if the attribute at the specified index is of the ID type.
|
boolean | isSpecified(int index) - Returns false if the attribute was defaulted (added by the validator).
|
TypeInfoProvider
protected TypeInfoProvider()
getAttributeTypeInfo
public TypeInfo getAttributeTypeInfo(int index)
Returns the type information for the specified attribute of the current
element.
index
- the attribute index as for the Attributes object passed to
the startElement callback
getElementTypeInfo
public TypeInfo getElementTypeInfo()
Returns the type information for the current element.
isIdAttribute
public boolean isIdAttribute(int index)
Indicates if the attribute at the specified index is of the ID type.
index
- the attribute index as for the Attributes object passed to
the startElement callback
isSpecified
public boolean isSpecified(int index)
Returns false if the attribute was defaulted (added by the validator).
index
- the attribute index as for the Attributes object passed to
the startElement callback