javax.xml.validation
Class TypeInfoProvider

java.lang.Object
  extended by javax.xml.validation.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  TypeInfo getAttributeTypeInfo(int index)
          Returns the type information for the specified attribute of the current element.
abstract  TypeInfo getElementTypeInfo()
          Returns the type information for the current element.
abstract  boolean isIdAttribute(int index)
          Indicates if the attribute at the specified index is of the ID type.
abstract  boolean isSpecified(int index)
          Returns false if the attribute was defaulted (added by the validator).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeInfoProvider

protected TypeInfoProvider()
Method Detail

getElementTypeInfo

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


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

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