org.apache.xerces.impl.xs
Class XSAttributeDecl

java.lang.Object
  |
  +--org.apache.xerces.impl.xs.XSAttributeDecl
All Implemented Interfaces:
XSAttributeDeclaration, XSObject

public class XSAttributeDecl
extends java.lang.Object
implements XSAttributeDeclaration

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

Version:
$Id: XSAttributeDecl.java,v 1.8 2002/05/16 18:25:54 sandygao Exp $
Author:
Elena Litani, IBM, Sandy Gao, IBM

Field Summary
 short fConstraintType
           
 ValidatedInfo fDefault
           
 java.lang.String fName
           
 short fScope
           
 java.lang.String fTargetNamespace
           
 XSSimpleType fType
           
static short SCOPE_ABSENT
           
static short SCOPE_GLOBAL
           
static short SCOPE_LOCAL
           
 
Constructor Summary
XSAttributeDecl()
           
 
Method Summary
 XSAnnotation getAnnotation()
          Optional.
 short getConstraintType()
          Value constraint: one of default, fixed.
 java.lang.String getConstraintValue()
          Value constraint: The actual value (with respect to the {type definition}) Should we return Object instead of DOMString?
 XSComplexTypeDefinition getEnclosingCTDefinition()
          Locally scoped declarations are available for use only within the complex type definition identified by the scope property.
 java.lang.String getName()
          The name of this XSObject depending on the XSObject type.
 java.lang.String getNamespace()
          The namespace URI of this node, or null if it is unspecified.
 short getScope()
          Optional.
 short getType()
          Get the type of the object, i.e ELEMENT_DECLARATION.
 XSSimpleTypeDefinition getTypeDefinition()
          A simple type definition
 void reset()
           
 void setConstraintType(short constraintType)
           
 void setIsGlobal()
           
 void setIsLocal(XSComplexTypeDecl enclosingCT)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE_ABSENT

public static final short SCOPE_ABSENT
See Also:
Constant Field Values

SCOPE_GLOBAL

public static final short SCOPE_GLOBAL
See Also:
Constant Field Values

SCOPE_LOCAL

public static final short SCOPE_LOCAL
See Also:
Constant Field Values

fName

public java.lang.String fName

fTargetNamespace

public java.lang.String fTargetNamespace

fType

public XSSimpleType fType

fConstraintType

public short fConstraintType

fScope

public short fScope

fDefault

public ValidatedInfo fDefault
Constructor Detail

XSAttributeDecl

public XSAttributeDecl()
Method Detail

setConstraintType

public void setConstraintType(short constraintType)

setIsGlobal

public void setIsGlobal()

setIsLocal

public void setIsLocal(XSComplexTypeDecl enclosingCT)

reset

public void reset()

getType

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

Specified by:
getType in interface XSObject

getName

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

Specified by:
getName in interface XSObject

getNamespace

public java.lang.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 XSObject

getTypeDefinition

public XSSimpleTypeDefinition getTypeDefinition()
A simple type definition

Specified by:
getTypeDefinition in interface XSAttributeDeclaration

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 XSAttributeDeclaration

getEnclosingCTDefinition

public 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 XSAttributeDeclaration

getConstraintType

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

Specified by:
getConstraintType in interface XSAttributeDeclaration

getConstraintValue

public java.lang.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 XSAttributeDeclaration

getAnnotation

public XSAnnotation getAnnotation()
Optional. Annotation.

Specified by:
getAnnotation in interface XSAttributeDeclaration


Copyright © 1999-2002 Apache XML Project. All Rights Reserved.