FileDocCategorySizeDatePackage
AttributePSVImpl.javaAPI DocApache Xerces 3.0.17434Fri Sep 14 20:33:56 BST 2007org.apache.xerces.impl.xs

AttributePSVImpl

public class AttributePSVImpl extends Object implements org.apache.xerces.xs.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 446734 2006-09-15 20:51:23Z mrglavas $

Fields Summary
protected org.apache.xerces.xs.XSAttributeDeclaration
fDeclaration
attribute declaration
protected org.apache.xerces.xs.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 org.apache.xerces.xs.ShortList
fItemValueTypes
actual value types if the value is a list
protected org.apache.xerces.xs.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 org.apache.xerces.xs.XSAttributeDeclarationgetAttributeDeclaration()
An item isomorphic to the attribute declaration used to validate this attribute.

return
an attribute declaration

        return fDeclaration;
    
public org.apache.xerces.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 org.apache.xerces.xs.ShortListgetItemValueTypes()

        return this.fItemValueTypes;
    
public org.apache.xerces.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 org.apache.xerces.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;