FileDocCategorySizeDatePackage
AttributePSVImpl.javaAPI DocJava SE 6 API7252Tue Jun 10 00:22:44 BST 2008com.sun.org.apache.xerces.internal.impl.xs

AttributePSVImpl

public class AttributePSVImpl extends Object implements AttributePSVI
Attribute PSV infoset augmentations implementation. The PSVI information for attributes will be available at the startElement call.
xerces.internal
author
Elena Litani IBM
version
$Id: AttributePSVImpl.java,v 1.2.6.1 2005/09/09 07:30:49 sunithareddy Exp $

Fields Summary
protected XSAttributeDeclaration
fDeclaration
attribute declaration
protected XSTypeDefinition
fTypeDecl
type of attribute, simpleType
protected boolean
fSpecified
If this attribute was explicitly given a value in the original document, this is false; otherwise, it is true
protected String
fNormalizedValue
schema normalized value property
protected Object
fActualValue
schema actual value
protected short
fActualValueType
schema actual value type
protected ShortList
fItemValueTypes
actual value types if the value is a list
protected XSSimpleTypeDefinition
fMemberType
member type definition against which attribute was validated
protected short
fValidationAttempted
validation attempted: none, partial, full
protected short
fValidity
validity: valid, invalid, unknown
protected String[]
fErrorCodes
error codes
protected String
fValidationContext
validation context: could be QName or XPath expression
Constructors Summary
Methods Summary
public java.lang.ObjectgetActualNormalizedValue()

        return this.fActualValue;
    
public shortgetActualNormalizedValueType()

        return this.fActualValueType;
    
public com.sun.org.apache.xerces.internal.xs.XSAttributeDeclarationgetAttributeDeclaration()
An item isomorphic to the attribute declaration used to validate this attribute.

return
an attribute declaration

        return fDeclaration;
    
public com.sun.org.apache.xerces.internal.xs.StringListgetErrorCodes()
A list of error codes generated from validation attempts. Need to find all the possible subclause reports that need reporting

return
list of error codes

        if (fErrorCodes == null)
            return null;
        return new StringListImpl(fErrorCodes, fErrorCodes.length);
    
public booleangetIsSchemaSpecified()
[schema specified]

see
XML Schema Part 1: Structures [schema specified]
return
true - value was specified in schema, false - value comes from the infoset

        return fSpecified;
    
public com.sun.org.apache.xerces.internal.xs.ShortListgetItemValueTypes()

        return this.fItemValueTypes;
    
public com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinitiongetMemberTypeDefinition()
If and only if that type definition is a simple type definition with {variety} union, or a complex type definition whose {content type} is a simple thype definition with {variety} union, then an item isomorphic to that member of the union's {member type definitions} which actually validated the element item's normalized value.

return
a simple type declaration

        return fMemberType;
    
public java.lang.StringgetSchemaDefault()
[schema default]

return
The canonical lexical representation of the declaration's {value constraint} value.
see
XML Schema Part 1: Structures [schema normalized value]
return
the normalized value of this item after validation

        return fNormalizedValue;
    
public com.sun.org.apache.xerces.internal.xs.XSTypeDefinitiongetTypeDefinition()
An item isomorphic to the type definition used to validate this element.

return
a type declaration

        return fTypeDecl;
    
public shortgetValidationAttempted()
Determines the extent to which the document has been validated

return
return the [validation attempted] property. The possible values are NO_VALIDATION, PARTIAL_VALIDATION and FULL_VALIDATION

        return fValidationAttempted;
    
public java.lang.StringgetValidationContext()

        return fValidationContext;
    
public shortgetValidity()
Determine the validity of the node with respect to the validation being attempted

return
return the [validity] property. Possible values are: UNKNOWN_VALIDITY, INVALID_VALIDITY, VALID_VALIDITY

        return fValidity;
    
public voidreset()
Reset()

        fNormalizedValue = null;
        fActualValue = null;
        fActualValueType = XSConstants.UNAVAILABLE_DT;
        fItemValueTypes = null;
        fDeclaration = null;
        fTypeDecl = null;
        fSpecified = false;
        fMemberType = null;
        fValidationAttempted = AttributePSVI.VALIDATION_NONE;
        fValidity = AttributePSVI.VALIDITY_NOTKNOWN;
        fErrorCodes = null;
        fValidationContext = null;