javax.xml.validation

Class TypeInfoProvider

public abstract class TypeInfoProvider extends Object

Provides access to the PSVI type info supplied by ValidatorHandler.

Since: 1.3

Constructor Summary
protected TypeInfoProvider()
Method Summary
abstract TypeInfogetAttributeTypeInfo(int index)
Returns the type information for the specified attribute of the current element.
abstract TypeInfogetElementTypeInfo()
Returns the type information for the current element.
abstract booleanisIdAttribute(int index)
Indicates if the attribute at the specified index is of the ID type.
abstract booleanisSpecified(int index)
Returns false if the attribute was defaulted (added by the validator).

Constructor Detail

TypeInfoProvider

protected TypeInfoProvider()

Method Detail

getAttributeTypeInfo

public abstract TypeInfo getAttributeTypeInfo(int index)
Returns the type information for the specified attribute of the current element.

Parameters: index the attribute index as for the Attributes object passed to the startElement callback

getElementTypeInfo

public abstract TypeInfo getElementTypeInfo()
Returns the type information for the current element.

isIdAttribute

public abstract boolean isIdAttribute(int index)
Indicates if the attribute at the specified index is of the ID type.

Parameters: index the attribute index as for the Attributes object passed to the startElement callback

isSpecified

public abstract boolean isSpecified(int index)
Returns false if the attribute was defaulted (added by the validator).

Parameters: index the attribute index as for the Attributes object passed to the startElement callback