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

ElementPSVImpl

public class ElementPSVImpl extends Object implements ElementPSVI
Element PSV infoset augmentations implementation. The following information will be available at the startElement call: name, namespace, type, notation, validation context The following information will be available at the endElement call: nil, specified, normalized value, member type, validity, error codes, default
xerces.internal
author
Elena Litani IBM
version
$Id: ElementPSVImpl.java,v 1.2.6.1 2005/09/09 07:30:49 sunithareddy Exp $

Fields Summary
protected XSElementDeclaration
fDeclaration
element declaration
protected XSTypeDefinition
fTypeDecl
type of element, could be xsi:type
protected boolean
fNil
true if clause 3.2 of Element Locally Valid (Element) (3.3.4) is satisfied, otherwise false
protected boolean
fSpecified
true if the element value was provided by the schema; false otherwise.
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 XSNotationDeclaration
fNotation
http://www.w3.org/TR/xmlschema-1/#e-notation
protected XSSimpleTypeDefinition
fMemberType
member type definition against which element 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
protected SchemaGrammar[]
fGrammars
deferred XSModel
protected XSModel
fSchemaInformation
the schema information property
Constructors Summary
Methods Summary
public java.lang.ObjectgetActualNormalizedValue()

        return this.fActualValue;
    
public shortgetActualNormalizedValueType()

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

return
an element 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
Array 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 booleangetNil()
[nil]

see
XML Schema Part 1: Structures [notation]
return
The notation declaration.

        return fNotation;
    
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 information]
return
The schema information property if it's the validation root, null otherwise.

        if (fSchemaInformation == null && fGrammars != null) {
            fSchemaInformation = new XSModelImpl(fGrammars);
        }
        return fSchemaInformation;
    
public java.lang.StringgetSchemaNormalizedValue()
[schema normalized value]

see