APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom

public Class PSVIAttrNSImpl

extends AttrNSImpl
implements AttributePSVI
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xs.AttributePSVI, com.sun.org.apache.xerces.internal.xs.ItemPSVI
Imports
com.sun.org.apache.xerces.internal.impl.dv.ValidatedInfo, com.sun.org.apache.xerces.internal.impl.xs.AttributePSVImpl, com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl, com.sun.org.apache.xerces.internal.xs.*, .AttributePSVI, java.io.IOException, .NotSerializableException, .ObjectInputStream, .ObjectOutputStream

Attribute namespace implementation; stores PSVI attribute items.
Author
Sandy Gao, IBM

Field Summary

Modifier and TypeField and Description
protected XSAttributeDeclaration
fDeclaration

attribute declaration

protected StringList
fErrorCodes

error codes

protected StringList
fErrorMessages

error messages

protected boolean
fSpecified

If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false

protected XSTypeDefinition
fTypeDecl

type of attribute, simpleType

protected short
fValidationAttempted

validation attempted: none, partial, full

protected String
fValidationContext

validation context: could be QName or XPath expression

protected short
fValidity

validity: valid, invalid, unknown

protected ValidatedInfo
fValue

Schema value

pack-priv static final long
Inherited from com.sun.org.apache.xerces.internal.dom.AttrNSImpl:
localNamenamespaceURIxmlnsURIxmlURI

Constructor Summary

AccessConstructor and Description
public
PSVIAttrNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName, String localName)

Construct an attribute node.

public
PSVIAttrNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName)

Construct an attribute node.

Method Summary

Modifier and TypeMethod and Description
public ItemPSVI
constant()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.constant.

Returns a reference to an immutable instance with the same data that this instance of ItemPSVI currently has.

public Object
getActualNormalizedValue()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getActualNormalizedValue.

Deprecated

[schema normalized value]: Binding specific actual value or null if the value is in error.

public short
getActualNormalizedValueType()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getActualNormalizedValueType.

Deprecated

The actual value built-in datatype, e.g. STRING_DT, SHORT_DT.

public XSAttributeDeclaration

Returns:

an attribute declaration
getAttributeDeclaration
()

Implements com.sun.org.apache.xerces.internal.xs.AttributePSVI.getAttributeDeclaration.

An item isomorphic to the attribute declaration used to validate this attribute.

public StringList

Returns:

list of error codes
getErrorCodes
()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getErrorCodes.

A list of error codes generated from validation attempts.

public StringList
getErrorMessages()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getErrorMessages.

A list of error messages generated from the validation attempt or an empty StringList if no errors occurred during the validation attempt.

public boolean

Returns:

false value was specified in schema, true value comes from the infoset
getIsSchemaSpecified
()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getIsSchemaSpecified.

[schema specified]

public ShortList
getItemValueTypes()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getItemValueTypes.

Deprecated

In the case the actual value represents a list, i.e. the actualNormalizedValueType is LIST_DT, the returned array consists of one type kind which represents the itemType .

public XSSimpleTypeDefinition

Returns:

a simple type declaration
getMemberTypeDefinition
()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getMemberTypeDefinition.

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 type 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.

public String

Returns:

The canonical lexical representation of the declaration's {value constraint} value.
getSchemaDefault
()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getSchemaDefault.

[schema default]

public String

Returns:

the normalized value of this item after validation
getSchemaNormalizedValue
()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getSchemaNormalizedValue.

Deprecated

[schema normalized value]

public XSValue
getSchemaValue()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getSchemaValue.

If this item has a simple type definition or a complex type with simple content, then return the value with respect to the simple type.

public XSTypeDefinition

Returns:

a type declaration
getTypeDefinition
()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getTypeDefinition.

An item isomorphic to the type definition used to validate this element.

public short

Returns:

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

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getValidationAttempted.

Determines the extent to which the document has been validated

public String
getValidationContext()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getValidationContext.

The nearest ancestor element information item with a [schema information] property (or this element item itself if it has such a property).

public short

Returns:

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

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getValidity.

Determine the validity of the node with respect to the validation being attempted

public boolean
isConstant()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.isConstant.

Returns true if this specific instance of ItemPSVI is immutable, otherwise false.

private void
public void
setPSVI(AttributePSVI
the source of attribute PSVI items
attr
)

Copy PSVI properties from another psvi item.

private void
Inherited from com.sun.org.apache.xerces.internal.dom.AttrNSImpl:
getLocalNamegetNamespaceURIgetPrefixgetTypeNamegetTypeNamespaceisDerivedFromrenamesetPrefix

Field Detail

fDeclarationback to summary
protected XSAttributeDeclaration fDeclaration

attribute declaration

Annotations
@SuppressWarnings:serial
fErrorCodesback to summary
protected StringList fErrorCodes

error codes

Annotations
@SuppressWarnings:serial
fErrorMessagesback to summary
protected StringList fErrorMessages

error messages

Annotations
@SuppressWarnings:serial
fSpecifiedback to summary
protected boolean fSpecified

If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false

fTypeDeclback to summary
protected XSTypeDefinition fTypeDecl

type of attribute, simpleType

Annotations
@SuppressWarnings:serial
fValidationAttemptedback to summary
protected short fValidationAttempted

validation attempted: none, partial, full

fValidationContextback to summary
protected String fValidationContext

validation context: could be QName or XPath expression

fValidityback to summary
protected short fValidity

validity: valid, invalid, unknown

fValueback to summary
protected ValidatedInfo fValue

Schema value

Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xerces.internal.dom.AttrNSImpl.serialVersionUID.

Serialization version.

Constructor Detail

PSVIAttrNSImplback to summary
public PSVIAttrNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName, String localName)

Construct an attribute node.

PSVIAttrNSImplback to summary
public PSVIAttrNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName)

Construct an attribute node.

Method Detail

constantback to summary
public ItemPSVI constant()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.constant.

Doc from com.sun.org.apache.xerces.internal.xs.ItemPSVI.constant.

Returns a reference to an immutable instance with the same data that this instance of ItemPSVI currently has.

getActualNormalizedValueback to summary
public Object getActualNormalizedValue()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getActualNormalizedValue.

Doc from com.sun.org.apache.xerces.internal.xs.ItemPSVI.getActualNormalizedValue.

Deprecated

[schema normalized value]: Binding specific actual value or null if the value is in error.

Annotations
@Deprecated
getActualNormalizedValueTypeback to summary
public short getActualNormalizedValueType()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getActualNormalizedValueType.

Doc from com.sun.org.apache.xerces.internal.xs.ItemPSVI.getActualNormalizedValueType.

Deprecated

The actual value built-in datatype, e.g. STRING_DT, SHORT_DT. If the type definition of this value is a list type definition, this method returns LIST_DT. If the type definition of this value is a list type definition whose item type is a union type definition, this method returns LISTOFUNION_DT. To query the actual value of the list or list of union type definitions use itemValueTypes. If the actualNormalizedValue is null, this method returns UNAVAILABLE_DT.

Annotations
@Deprecated
getAttributeDeclarationback to summary
public XSAttributeDeclaration getAttributeDeclaration()

Implements com.sun.org.apache.xerces.internal.xs.AttributePSVI.getAttributeDeclaration.

An item isomorphic to the attribute declaration used to validate this attribute.

Returns:XSAttributeDeclaration

an attribute declaration

getErrorCodesback to summary
public StringList getErrorCodes()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getErrorCodes.

A list of error codes generated from validation attempts. Need to find all the possible subclause reports that need reporting

Returns:StringList

list of error codes

getErrorMessagesback to summary
public StringList getErrorMessages()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getErrorMessages.

A list of error messages generated from the validation attempt or an empty StringList if no errors occurred during the validation attempt. The indices of error messages in this list are aligned with those in the [schema error code] list.

getIsSchemaSpecifiedback to summary
public boolean getIsSchemaSpecified()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getIsSchemaSpecified.

[schema specified]

Returns:boolean

false value was specified in schema, true value comes from the infoset

See Also
XML Schema Part 1: Structures [schema specified]
getItemValueTypesback to summary
public ShortList getItemValueTypes()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getItemValueTypes.

Doc from com.sun.org.apache.xerces.internal.xs.ItemPSVI.getItemValueTypes.

Deprecated

In the case the actual value represents a list, i.e. the actualNormalizedValueType is LIST_DT, the returned array consists of one type kind which represents the itemType . For example:

 <simpleType name="listtype"> <list
itemType="positiveInteger"/> </simpleType> <element
name="list" type="listtype"/> ... <list>1 2 3</list> 
The schemaNormalizedValue value is "1 2 3", the actualNormalizedValueType value is LIST_DT, and the itemValueTypes is an array of size 1 with the value POSITIVEINTEGER_DT.
If the actual value represents a list type definition whose item type is a union type definition, i.e. LISTOFUNION_DT, for each actual value in the list the array contains the corresponding memberType kind. For example:
 <simpleType
name='union_type' memberTypes="integer string"/> <simpleType
name='listOfUnion'> <list itemType='union_type'/>
</simpleType> <element name="list" type="listOfUnion"/>
... <list>1 2 foo</list> 
The schemaNormalizedValue value is "1 2 foo", the actualNormalizedValueType is LISTOFUNION_DT , and the itemValueTypes is an array of size 3 with the following values: INTEGER_DT, INTEGER_DT, STRING_DT.
Annotations
@Deprecated
getMemberTypeDefinitionback to summary
public XSSimpleTypeDefinition getMemberTypeDefinition()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getMemberTypeDefinition.

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 type 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.

Returns:XSSimpleTypeDefinition

a simple type declaration

getSchemaDefaultback to summary
public String getSchemaDefault()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getSchemaDefault.

[schema default]

Returns:String

The canonical lexical representation of the declaration's {value constraint} value.

Annotations
@SuppressWarnings:deprecation
See Also
getSchemaNormalizedValueback to summary
public String getSchemaNormalizedValue()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getSchemaNormalizedValue.

Deprecated

[schema normalized value]

Returns:String

the normalized value of this item after validation

Annotations
@Deprecated
See Also
getSchemaValueback to summary
public XSValue getSchemaValue()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getSchemaValue.

Doc from com.sun.org.apache.xerces.internal.xs.ItemPSVI.getSchemaValue.

If this item has a simple type definition or a complex type with simple content, then return the value with respect to the simple type. If this item doesn't have a simple-typed value, the behavior of this method is not specified.

getTypeDefinitionback to summary
public XSTypeDefinition getTypeDefinition()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getTypeDefinition.

An item isomorphic to the type definition used to validate this element.

Returns:XSTypeDefinition

a type declaration

getValidationAttemptedback to summary
public short getValidationAttempted()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getValidationAttempted.

Determines the extent to which the document has been validated

Returns:short

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

getValidationContextback to summary
public String getValidationContext()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getValidationContext.

Doc from com.sun.org.apache.xerces.internal.xs.ItemPSVI.getValidationContext.

The nearest ancestor element information item with a [schema information] property (or this element item itself if it has such a property). For more information refer to element validation context and attribute validation context .

getValidityback to summary
public short getValidity()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.getValidity.

Determine the validity of the node with respect to the validation being attempted

Returns:short

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

isConstantback to summary
public boolean isConstant()

Implements com.sun.org.apache.xerces.internal.xs.ItemPSVI.isConstant.

Doc from com.sun.org.apache.xerces.internal.xs.ItemPSVI.isConstant.

Returns true if this specific instance of ItemPSVI is immutable, otherwise false.

readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException

Hides com.sun.org.apache.xerces.internal.dom.AttrImpl.readObject.

Doc from com.sun.org.apache.xerces.internal.dom.AttrImpl.readObject.

Deserialize object.

setPSVIback to summary
public void setPSVI(AttributePSVI attr)

Copy PSVI properties from another psvi item.

Parameters
attr:AttributePSVI

the source of attribute PSVI items

writeObjectback to summary
private void writeObject(ObjectOutputStream out) throws IOException

Hides com.sun.org.apache.xerces.internal.dom.AttrImpl.writeObject.

Doc from com.sun.org.apache.xerces.internal.dom.AttrImpl.writeObject.

Serialize object.