FileDocCategorySizeDatePackage
PSVIAttrNSImpl.javaAPI DocJava SE 6 API8307Tue Jun 10 00:22:38 BST 2008com.sun.org.apache.xerces.internal.dom

PSVIAttrNSImpl

public class PSVIAttrNSImpl extends AttrNSImpl implements AttributePSVI
Attribute namespace implementation; stores PSVI attribute items.
xerces.internal
author
Sandy Gao, IBM
version
$Id: PSVIAttrNSImpl.java,v 1.2.6.1 2005/08/31 12:33:52 sunithareddy Exp $

Fields Summary
static final long
serialVersionUID
Serialization version.
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 true; otherwise, it is false
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 StringList
fErrorCodes
error codes
protected String
fValidationContext
validation context: could be QName or XPath expression
Constructors Summary
public PSVIAttrNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName, String localName)
Construct an attribute node.


             
         
                              
        super(ownerDocument, namespaceURI, qualifiedName, localName);
    
public PSVIAttrNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName)
Construct an attribute node.

        super(ownerDocument, namespaceURI, qualifiedName);
    
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

        return fErrorCodes;
    
public booleangetIsSchemaSpecified()
[schema specified]

see
XML Schema Part 1: Structures [schema specified]
return
false value was specified in schema, true 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;
    
private voidreadObject(java.io.ObjectInputStream in)

        throw new NotSerializableException(getClass().getName());
    
public voidsetPSVI(com.sun.org.apache.xerces.internal.xs.AttributePSVI attr)
Copy PSVI properties from another psvi item.

param
attr the source of attribute PSVI items

        this.fDeclaration = attr.getAttributeDeclaration();
        this.fValidationContext = attr.getValidationContext();
        this.fValidity = attr.getValidity();
        this.fValidationAttempted = attr.getValidationAttempted();
        this.fErrorCodes = attr.getErrorCodes();
        this.fNormalizedValue = attr.getSchemaNormalizedValue();
        this.fActualValue = attr.getActualNormalizedValue();
        this.fActualValueType = attr.getActualNormalizedValueType();
        this.fItemValueTypes = attr.getItemValueTypes();
        this.fTypeDecl = attr.getTypeDefinition();
        this.fMemberType = attr.getMemberTypeDefinition();
        this.fSpecified = attr.getIsSchemaSpecified();
    
private voidwriteObject(java.io.ObjectOutputStream out)

        throw new NotSerializableException(getClass().getName());