org.apache.xerces.impl.xs

Class XSAttributeDecl

Implemented Interfaces:
org.apache.xerces.xs.XSAttributeDeclaration

public class XSAttributeDecl
extends java.lang.Object
implements org.apache.xerces.xs.XSAttributeDeclaration

The XML representation for an attribute declaration schema component is an element information item
Version:
$Id: XSAttributeDecl.java 388853 2006-03-25 23:05:56Z mrglavas $
Authors:
Elena Litani, IBM
Sandy Gao, IBM

Field Summary

static short
SCOPE_ABSENT
static short
SCOPE_GLOBAL
static short
SCOPE_LOCAL

Method Summary

Object
getActualVC()
short
getActualVCType()
org.apache.xerces.xs.XSAnnotation
getAnnotation()
Optional.
org.apache.xerces.xs.XSObjectList
getAnnotations()
Optional.
short
getConstraintType()
Value constraint: one of default, fixed.
String
getConstraintValue()
Value constraint: The actual value (with respect to the {type definition}) Should we return Object instead of DOMString?
org.apache.xerces.xs.XSComplexTypeDefinition
getEnclosingCTDefinition()
Locally scoped declarations are available for use only within the complex type definition identified by the scope property.
org.apache.xerces.xs.ShortList
getItemValueTypes()
String
getName()
The name of this XSObject depending on the XSObject type.
String
getNamespace()
The namespace URI of this node, or null if it is unspecified.
org.apache.xerces.xs.XSNamespaceItem
getNamespaceItem()
short
getScope()
Optional.
short
getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
org.apache.xerces.xs.XSSimpleTypeDefinition
getTypeDefinition()
A simple type definition
ValidatedInfo
getValInfo()
void
reset()
void
setValues(String name, String targetNamespace, XSSimpleType simpleType, short constraintType, short scope, ValidatedInfo valInfo, XSComplexTypeDecl enclosingCT, org.apache.xerces.xs.XSObjectList annotations)

Field Details

SCOPE_ABSENT

public static final short SCOPE_ABSENT
Field Value:
0

SCOPE_GLOBAL

public static final short SCOPE_GLOBAL
Field Value:
1

SCOPE_LOCAL

public static final short SCOPE_LOCAL
Field Value:
2

Method Details

getActualVC

public Object getActualVC()
Specified by:
getActualVC in interface org.apache.xerces.xs.XSAttributeDeclaration

getActualVCType

public short getActualVCType()
Specified by:
getActualVCType in interface org.apache.xerces.xs.XSAttributeDeclaration

getAnnotation

public org.apache.xerces.xs.XSAnnotation getAnnotation()
Optional. Annotation.
Specified by:
getAnnotation in interface org.apache.xerces.xs.XSAttributeDeclaration

getAnnotations

public org.apache.xerces.xs.XSObjectList getAnnotations()
Optional. Annotations.
Specified by:
getAnnotations in interface org.apache.xerces.xs.XSAttributeDeclaration

getConstraintType

public short getConstraintType()
Value constraint: one of default, fixed.
Specified by:
getConstraintType in interface org.apache.xerces.xs.XSAttributeDeclaration

getConstraintValue

public String getConstraintValue()
Value constraint: The actual value (with respect to the {type definition}) Should we return Object instead of DOMString?
Specified by:
getConstraintValue in interface org.apache.xerces.xs.XSAttributeDeclaration

getEnclosingCTDefinition

public org.apache.xerces.xs.XSComplexTypeDefinition getEnclosingCTDefinition()
Locally scoped declarations are available for use only within the complex type definition identified by the scope property.
Specified by:
getEnclosingCTDefinition in interface org.apache.xerces.xs.XSAttributeDeclaration

getItemValueTypes

public org.apache.xerces.xs.ShortList getItemValueTypes()
Specified by:
getItemValueTypes in interface org.apache.xerces.xs.XSAttributeDeclaration

getName

public String getName()
The name of this XSObject depending on the XSObject type.
Specified by:
getName in interface org.apache.xerces.xs.XSObject

getNamespace

public String getNamespace()
The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.
Specified by:
getNamespace in interface org.apache.xerces.xs.XSObject

getNamespaceItem

public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
Specified by:
getNamespaceItem in interface org.apache.xerces.xs.XSObject
See Also:
org.apache.xerces.xs.XSObject.getNamespaceItem()

getScope

public short 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.
Specified by:
getScope in interface org.apache.xerces.xs.XSAttributeDeclaration

getType

public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
Specified by:
getType in interface org.apache.xerces.xs.XSObject

getTypeDefinition

public org.apache.xerces.xs.XSSimpleTypeDefinition getTypeDefinition()
A simple type definition
Specified by:
getTypeDefinition in interface org.apache.xerces.xs.XSAttributeDeclaration

getValInfo

public ValidatedInfo getValInfo()

reset

public void reset()

setValues

public void setValues(String name,
                      String targetNamespace,
                      XSSimpleType simpleType,
                      short constraintType,
                      short scope,
                      ValidatedInfo valInfo,
                      XSComplexTypeDecl enclosingCT,
                      org.apache.xerces.xs.XSObjectList annotations)

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.