javax.xml.validation

Class TypeInfoProvider


public abstract class TypeInfoProvider
extends java.lang.Object

Provides access to the PSVI type info supplied by ValidatorHandler.

Since:
1.3

Constructor Summary

TypeInfoProvider()

Method Summary

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).

Constructor Details

TypeInfoProvider

protected TypeInfoProvider()

Method Details

getAttributeTypeInfo

public 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 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.

Parameters:
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).

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