org.apache.xerces.xni.psvi
Interface ItemPSVI

All Known Subinterfaces:
AttributePSVI, ElementPSVI

public interface ItemPSVI

Author:
Elena Litani, IBM

Field Summary
static short FULL_VALIDATION
          Validation status indicating that full schema validation has been performed on the element.
static short INVALID_VALIDITY
          Validity value indicating that validation has been strictly assessed and the element in question is invalid according to the rules of schema validation.
static short NO_VALIDATION
          Validation status indicating that schema validation has been performed and the element in question has specifically been skipped.
static short PARTIAL_VALIDATION
          Validation status indicating that schema validation has been performed on the element in question under the rules of lax validation.
static short UNKNOWN_VALIDITY
          Validity value indicating that validation has either not been performed or that a strict assessment of validity could not be performed
static short VALID_VALIDITY
          Validity value indicating that validation has been strictly assessed and the element in question is valid according to the rules of schema validation.
 
Method Summary
 java.lang.String[] getErrorCodes()
          A list of error codes generated from validation attempts.
 java.lang.String getMemberTypeName()
          [member type definition name]
 java.lang.String getMemberTypeNamespace()
          [member type definition namespace]
 java.lang.String getSchemaDefault()
          [schema default]
 java.lang.String getSchemaNormalizedValue()
          [schema normalized value]
 short getTypeDefinitionType()
          [type definition type]
 java.lang.String getTypeName()
          [type definition name]
 java.lang.String getTypeNamespace()
          [type definition namespace]
 short getValidationAttempted()
          Determines the extent to which the document has been validated
 java.lang.String getValidationContext()
          [validation context] // REVISIT: what the return type should be? Should we return QName/XPath/ or element info item..?
 short getValidity()
          Determine the validity of the node with respect to the validation being attempted
 boolean isMemberTypeAnonymous()
          [member type definition anonymous]
 boolean isSpecified()
          [schema specified]
 boolean isTypeAnonymous()
          [type definition anonymous]
 

Field Detail

UNKNOWN_VALIDITY

public static final short UNKNOWN_VALIDITY
Validity value indicating that validation has either not been performed or that a strict assessment of validity could not be performed

INVALID_VALIDITY

public static final short INVALID_VALIDITY
Validity value indicating that validation has been strictly assessed and the element in question is invalid according to the rules of schema validation.

VALID_VALIDITY

public static final short VALID_VALIDITY
Validity value indicating that validation has been strictly assessed and the element in question is valid according to the rules of schema validation.

NO_VALIDATION

public static final short NO_VALIDATION
Validation status indicating that schema validation has been performed and the element in question has specifically been skipped.

PARTIAL_VALIDATION

public static final short PARTIAL_VALIDATION
Validation status indicating that schema validation has been performed on the element in question under the rules of lax validation.

FULL_VALIDATION

public static final short FULL_VALIDATION
Validation status indicating that full schema validation has been performed on the element.
Method Detail

isMemberTypeAnonymous

public boolean isMemberTypeAnonymous()
[member type definition anonymous]
Returns:
true if the {name} of the actual member type definition is absent, otherwise false.

getMemberTypeName

public java.lang.String getMemberTypeName()
[member type definition name]
Returns:
The {name} of the actual member type definition, if it is not absent. If it is absent, schema processors may, but need not, provide a value unique to the definition.
See Also:
XML Schema Part 1: Structures [member type definition name]

getMemberTypeNamespace

public java.lang.String getMemberTypeNamespace()
[member type definition namespace]
Returns:
The {target namespace} of the actual member type definition.
See Also:
XML Schema Part 1: Structures [member type definition namespace]

getSchemaDefault

public java.lang.String getSchemaDefault()
[schema default]
Returns:
The canonical lexical representation of the declaration's {value constraint} value.
See Also:
XML Schema Part 1: Structures [schema default]

getSchemaNormalizedValue

public java.lang.String getSchemaNormalizedValue()
[schema normalized value]
Returns:
the normalized value of this item after validation
See Also:
XML Schema Part 1: Structures [schema normalized value]

isSpecified

public boolean isSpecified()
[schema specified]
Returns:
false - value was specified in schema, true - value comes from the infoset
See Also:
XML Schema Part 1: Structures [schema specified]

isTypeAnonymous

public boolean isTypeAnonymous()
[type definition anonymous]
Returns:
true if the {name} of the type definition is absent, otherwise false.
See Also:
XML Schema Part 1: Structures [type definition anonymous]

getTypeName

public java.lang.String getTypeName()
[type definition name]
Returns:
The {name} of the type definition, if it is not absent. If it is absent, schema processors may, but need not, provide a value unique to the definition.
See Also:
XML Schema Part 1: Structures [type definition name]

getTypeNamespace

public java.lang.String getTypeNamespace()
[type definition namespace]
Returns:
The {target namespace} of the type definition.
See Also:
XML Schema Part 1: Structures [type definition namespace]

getTypeDefinitionType

public short getTypeDefinitionType()
[type definition type]
Returns:
simple or complex, depending on the type definition.
See Also:
XML Schema Part 1: Structures [type definition type], XML Schema Part 1: Structures [type definition type]

getValidationAttempted

public short getValidationAttempted()
Determines the extent to which the document has been validated
Returns:
return the [validation attempted] property. The possible values are NO_VALIDATION, PARTIAL_VALIDATION and FULL_VALIDATION

getValidity

public short getValidity()
Determine the validity of the node with respect to the validation being attempted
Returns:
return the [validity] property. Possible values are: UNKNOWN_VALIDITY, INVALID_VALIDITY, VALID_VALIDITY

getErrorCodes

public java.lang.String[] getErrorCodes()
A list of error codes generated from validation attempts. Need to find all the possible subclause reports that need reporting
Returns:
Array of error codes

getValidationContext

public java.lang.String getValidationContext()
[validation context] // REVISIT: what the return type should be? Should we return QName/XPath/ or element info item..?
Returns:
The nearest ancestor element information item with a [schema information] property (or this element item itself if it has such a property)
See Also:
XML Schema Part 1: Structures [validation context]


Copyright © 1999-2002 Apache XML Project. All Rights Reserved.