FileDocCategorySizeDatePackage
ElementPSVImpl.javaAPI DocApache Xerces 3.0.19341Fri Sep 14 20:33:54 BST 2007org.apache.xerces.impl.xs

ElementPSVImpl

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

Fields Summary
protected org.apache.xerces.xs.XSElementDeclaration
fDeclaration
element declaration
protected org.apache.xerces.xs.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 org.apache.xerces.xs.ShortList
fItemValueTypes
actual value types if the value is a list
protected org.apache.xerces.xs.XSNotationDeclaration
fNotation
http://www.w3.org/TR/xmlschema-1/#e-notation
protected org.apache.xerces.xs.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 org.apache.xerces.xs.XSModel
fSchemaInformation
the schema information property
Constructors Summary
Methods Summary
public java.lang.ObjectgetActualNormalizedValue()

        return this.fActualValue;
    
public shortgetActualNormalizedValueType()

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

return
an element 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
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 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 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