Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xs

public Class XSAttributeDecl

extends Object
implements XSAttributeDeclaration
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration, com.sun.org.apache.xerces.internal.xs.XSObject
Known Direct Subclasses
com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar.BuiltinAttrDecl
Imports
com.sun.org.apache.xerces.internal.impl.dv.ValidatedInfo, .XSSimpleType, com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl, com.sun.org.apache.xerces.internal.xni.QName, com.sun.org.apache.xerces.internal.xs.ShortList, .XSAnnotation, .XSAttributeDeclaration, .XSComplexTypeDefinition, .XSConstants, .XSNamespaceItem, .XSObjectList, .XSSimpleTypeDefinition, .XSValue

The XML representation for an attribute declaration schema component is an <attribute> element information item
Authors
Elena Litani, IBM, Sandy Gao, IBM

Field Summary

Modifier and TypeField and Description
pack-priv XSObjectList
pack-priv short
pack-priv ValidatedInfo
pack-priv XSComplexTypeDecl
pack-priv String
private XSNamespaceItem
pack-priv short
pack-priv String
pack-priv XSSimpleType
public QName
public static final short
public static final short
public static final short

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getActualVC()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getActualVC.

Deprecated

Value Constraint: Binding specific actual constraint value or null if the value is in error or there is no value constraint.

public short
getActualVCType()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getActualVCType.

Deprecated

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

public XSAnnotation
public XSObjectList
public short
public String
getConstraintValue()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getConstraintValue.

Deprecated

Value constraint: The actual value (with respect to the {type definition}) Should we return Object instead of DOMString?

public XSComplexTypeDefinition
getEnclosingCTDefinition()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getEnclosingCTDefinition.

Locally scoped declarations are available for use only within the complex type definition identified by the scope property.

public ShortList
getItemValueTypes()

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

Deprecated

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

public String
getName()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getName.

The name of this XSObject depending on the XSObject type.

public String
getNamespace()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespace.

The namespace URI of this node, or null if it is unspecified.

public XSNamespaceItem
getNamespaceItem()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.

public short
public short
getType()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getType.

Get the type of the object, i.e ELEMENT_DECLARATION.

public XSSimpleTypeDefinition
public ValidatedInfo
public XSValue
getValueConstraintValue()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getValueConstraintValue.

The actual value of the default or fixed value constraint.

public void
pack-priv void
public void
setValues(String name, String targetNamespace, XSSimpleType simpleType, short constraintType, short scope, ValidatedInfo valInfo, XSComplexTypeDecl enclosingCT, XSObjectList annotations)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fAnnotationsback to summary
pack-priv XSObjectList fAnnotations
fConstraintTypeback to summary
pack-priv short fConstraintType
fDefaultback to summary
pack-priv ValidatedInfo fDefault
fEnclosingCTback to summary
pack-priv XSComplexTypeDecl fEnclosingCT
fNameback to summary
pack-priv String fName
fNamespaceItemback to summary
private XSNamespaceItem fNamespaceItem
fScopeback to summary
pack-priv short fScope
fTargetNamespaceback to summary
pack-priv String fTargetNamespace
fTypeback to summary
pack-priv XSSimpleType fType
fUnresolvedTypeNameback to summary
public QName fUnresolvedTypeName
SCOPE_ABSENTback to summary
public static final short SCOPE_ABSENT
SCOPE_GLOBALback to summary
public static final short SCOPE_GLOBAL
SCOPE_LOCALback to summary
public static final short SCOPE_LOCAL

Constructor Detail

XSAttributeDeclback to summary
public XSAttributeDecl()

Method Detail

getActualVCback to summary
public Object getActualVC()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getActualVC.

Doc from com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getActualVC.

Deprecated

Value Constraint: Binding specific actual constraint value or null if the value is in error or there is no value constraint.

Annotations
@Deprecated
getActualVCTypeback to summary
public short getActualVCType()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getActualVCType.

Doc from com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getActualVCType.

Deprecated

The actual constraint 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 constraint value of the list or list of union type definitions use itemValueTypes. If the actualValue is null, this method returns UNAVAILABLE_DT.

Annotations
@Deprecated
getAnnotationback to summary
public XSAnnotation getAnnotation()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getAnnotation.

Optional. Annotation.

getAnnotationsback to summary
public XSObjectList getAnnotations()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getAnnotations.

Optional. Annotations.

getConstraintTypeback to summary
public short getConstraintType()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getConstraintType.

Value constraint: one of default, fixed.

getConstraintValueback to summary
public String getConstraintValue()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getConstraintValue.

Deprecated

Value constraint: The actual value (with respect to the {type definition}) Should we return Object instead of DOMString?

Annotations
@Deprecated
getEnclosingCTDefinitionback to summary
public XSComplexTypeDefinition getEnclosingCTDefinition()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getEnclosingCTDefinition.

Locally scoped declarations are available for use only within the complex type definition identified by the scope property.

getItemValueTypesback to summary
public ShortList getItemValueTypes()

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

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

Deprecated

In the case the actual constraint value represents a list, i.e. the actualValueType is LIST_DT, the returned array consists of one type kind which represents the itemType. If the actual constraint value represents a list type definition whose item type is a union type definition, i.e. LISTOFUNION_DT, for each actual constraint value in the list the array contains the corresponding memberType kind. For examples, see ItemPSVI.itemValueTypes.

Annotations
@Deprecated
getNameback to summary
public String getName()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getName.

The name of this XSObject depending on the XSObject type.

getNamespaceback to summary
public String getNamespace()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespace.

The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.

getNamespaceItemback to summary
public XSNamespaceItem getNamespaceItem()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespaceItem.

Doc from com.sun.org.apache.xerces.internal.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.

See Also
org.apache.xerces.xs.XSObject#getNamespaceItem()
getScopeback to summary
public short getScope()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getScope.

Optional. Either global or a complex type definition ( ctDefinition). This property is absent in the case of declarations within attribute group definitions: their scope will be determined when they are used in the construction of complex type definitions.

getTypeback to summary
public short getType()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getType.

Get the type of the object, i.e ELEMENT_DECLARATION.

getTypeDefinitionback to summary
public XSSimpleTypeDefinition getTypeDefinition()

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

A simple type definition

getValInfoback to summary
public ValidatedInfo getValInfo()
getValueConstraintValueback to summary
public XSValue getValueConstraintValue()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getValueConstraintValue.

Doc from com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration.getValueConstraintValue.

The actual value of the default or fixed value constraint.

resetback to summary
public void reset()
setNamespaceItemback to summary
pack-priv void setNamespaceItem(XSNamespaceItem namespaceItem)
setValuesback to summary
public void setValues(String name, String targetNamespace, XSSimpleType simpleType, short constraintType, short scope, ValidatedInfo valInfo, XSComplexTypeDecl enclosingCT, XSObjectList annotations)