org.apache.xerces.impl.xs

Class XSAttributeDecl

public class XSAttributeDecl extends Object implements XSAttributeDeclaration

The XML representation for an attribute declaration schema component is an element information item

Version: $Id: XSAttributeDecl.java,v 1.18 2004/12/07 18:11:27 sandygao Exp $

Author: Elena Litani, IBM Sandy Gao, IBM

UNKNOWN:

Field Summary
static shortSCOPE_ABSENT
static shortSCOPE_GLOBAL
static shortSCOPE_LOCAL
Method Summary
ObjectgetActualVC()
shortgetActualVCType()
XSAnnotationgetAnnotation()
Optional.
shortgetConstraintType()
Value constraint: one of default, fixed.
StringgetConstraintValue()
Value constraint: The actual value (with respect to the {type definition}) Should we return Object instead of DOMString?
XSComplexTypeDefinitiongetEnclosingCTDefinition()
Locally scoped declarations are available for use only within the complex type definition identified by the scope property.
ShortListgetItemValueTypes()
StringgetName()
The name of this XSObject depending on the XSObject type.
StringgetNamespace()
The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.
XSNamespaceItemgetNamespaceItem()
shortgetScope()
Optional.
shortgetType()
Get the type of the object, i.e ELEMENT_DECLARATION.
XSSimpleTypeDefinitiongetTypeDefinition()
A simple type definition
ValidatedInfogetValInfo()
voidreset()
voidsetValues(String name, String targetNamespace, XSSimpleType simpleType, short constraintType, short scope, ValidatedInfo valInfo, XSComplexTypeDecl enclosingCT, XSAnnotationImpl annotation)

Field Detail

SCOPE_ABSENT

public static final short SCOPE_ABSENT

SCOPE_GLOBAL

public static final short SCOPE_GLOBAL

SCOPE_LOCAL

public static final short SCOPE_LOCAL

Method Detail

getActualVC

public Object getActualVC()

getActualVCType

public short getActualVCType()

getAnnotation

public XSAnnotation getAnnotation()
Optional. Annotation.

getConstraintType

public short getConstraintType()
Value constraint: one of default, fixed.

getConstraintValue

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

getEnclosingCTDefinition

public XSComplexTypeDefinition getEnclosingCTDefinition()
Locally scoped declarations are available for use only within the complex type definition identified by the scope property.

getItemValueTypes

public ShortList getItemValueTypes()

getName

public String getName()
The name of this XSObject depending on the XSObject type.

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.

getNamespaceItem

public XSNamespaceItem getNamespaceItem()

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.

getType

public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.

getTypeDefinition

public XSSimpleTypeDefinition getTypeDefinition()
A simple type definition

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, XSAnnotationImpl annotation)
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.