Xerces-C++ 3.3.0
XSAttributeDeclaration Class Reference

#include <xercesc/framework/psvi/XSAttributeDeclaration.hpp>

Inheritance diagram for XSAttributeDeclaration:
XSObject XMemory

Public Member Functions

Constructors
 XSAttributeDeclaration (SchemaAttDef *const attDef, XSSimpleTypeDefinition *const typeDef, XSAnnotation *const annot, XSModel *const xsModel, XSConstants::SCOPE scope, XSComplexTypeDefinition *enclosingCTDefinition, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
 The default constructor.
 
Destructor
 ~XSAttributeDeclaration ()
 
overridden XSObject methods
const XMLChgetName () const
 The name of type NCName of this declaration as defined in XML Namespaces.
 
const XMLChgetNamespace () const
 The [target namespace] of this object, or null if it is unspecified.
 
XSNamespaceItemgetNamespaceItem ()
 A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise.
 
- Public Member Functions inherited from XSObject
 XSObject (XSConstants::COMPONENT_TYPE compType, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
 The default constructor.
 
virtual ~XSObject ()
 
XSConstants::COMPONENT_TYPE getType () const
 The type of this object, i.e.
 
virtual XMLSize_t getId () const
 Optional.
 
void setId (XMLSize_t id)
 methods needed by implementation
 
- Public Member Functions inherited from XMemory
void * operator new (size_t size)
 This method overrides operator new.
 
void * operator new (size_t size, MemoryManager *memMgr)
 This method defines a custom operator new, that will use the provided memory manager to perform the allocation.
 
void * operator new (size_t size, void *ptr)
 This method overrides placement operator new.
 
void operator delete (void *p)
 This method overrides operator delete.
 
void operator delete (void *p, MemoryManager *memMgr)
 This method provides a matching delete for the custom operator new.
 
void operator delete (void *p, void *ptr)
 This method provides a matching delete for the placement new.
 

XSAttributeDeclaration methods

class XSObjectFactory
 
SchemaAttDef * fAttDef
 
XSSimpleTypeDefinitionfTypeDefinition
 
XSAnnotationfAnnotation
 
XSConstants::SCOPE fScope
 
XSComplexTypeDefinitionfEnclosingCTDefinition
 
XSSimpleTypeDefinitiongetTypeDefinition () const
 [type definition]: A simple type definition
 
XSConstants::SCOPE getScope () const
 Optional.
 
XSComplexTypeDefinitiongetEnclosingCTDefinition ()
 The complex type definition for locally scoped declarations (see scope).
 
XSConstants::VALUE_CONSTRAINT getConstraintType () const
 Value constraint: one of VC_NONE, VC_DEFAULT, VC_FIXED.
 
const XMLChgetConstraintValue ()
 Value constraint: The actual value with respect to the [type definition ].
 
XSAnnotationgetAnnotation () const
 Optional.
 
bool getRequired () const
 methods needed by implementation
 

Additional Inherited Members

- Protected Member Functions inherited from XMemory
 XMemory ()
 Protected default constructor.
 
- Protected Attributes inherited from XSObject
XSConstants::COMPONENT_TYPE fComponentType
 
XSModelfXSModel
 
MemoryManagerfMemoryManager
 
XMLSize_t fId
 

Constructor & Destructor Documentation

◆ XSAttributeDeclaration()

XSAttributeDeclaration::XSAttributeDeclaration ( SchemaAttDef *const attDef,
XSSimpleTypeDefinition *const typeDef,
XSAnnotation *const annot,
XSModel *const xsModel,
XSConstants::SCOPE scope,
XSComplexTypeDefinition * enclosingCTDefinition,
MemoryManager *const manager = XMLPlatformUtils::fgMemoryManager )

The default constructor.

Parameters
attDef
typeDef
annot
xsModel
scope
enclosingCTDefinition
managerThe configurable memory manager

◆ ~XSAttributeDeclaration()

XSAttributeDeclaration::~XSAttributeDeclaration ( )

Member Function Documentation

◆ getAnnotation()

XSAnnotation * XSAttributeDeclaration::getAnnotation ( ) const

Optional.

Annotation.

References fAnnotation.

◆ getConstraintType()

XSConstants::VALUE_CONSTRAINT XSAttributeDeclaration::getConstraintType ( ) const

Value constraint: one of VC_NONE, VC_DEFAULT, VC_FIXED.

◆ getConstraintValue()

const XMLCh * XSAttributeDeclaration::getConstraintValue ( )

Value constraint: The actual value with respect to the [type definition ].

◆ getEnclosingCTDefinition()

XSComplexTypeDefinition * XSAttributeDeclaration::getEnclosingCTDefinition ( )

The complex type definition for locally scoped declarations (see scope).

References fEnclosingCTDefinition.

◆ getName()

const XMLCh * XSAttributeDeclaration::getName ( ) const
virtual

The name of type NCName of this declaration as defined in XML Namespaces.

Reimplemented from XSObject.

◆ getNamespace()

const XMLCh * XSAttributeDeclaration::getNamespace ( ) const
virtual

The [target namespace] of this object, or null if it is unspecified.

Reimplemented from XSObject.

◆ getNamespaceItem()

XSNamespaceItem * XSAttributeDeclaration::getNamespaceItem ( )
virtual

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

Reimplemented from XSObject.

◆ getRequired()

bool XSAttributeDeclaration::getRequired ( ) const

methods needed by implementation

◆ getScope()

XSConstants::SCOPE XSAttributeDeclaration::getScope ( ) const

Optional.

One of SCOPE_GLOBAL, SCOPE_LOCAL, or SCOPE_ABSENT. If the scope is local, then the enclosingCTDefinition is present.

References fScope.

◆ getTypeDefinition()

XSSimpleTypeDefinition * XSAttributeDeclaration::getTypeDefinition ( ) const

[type definition]: A simple type definition

References fTypeDefinition.

Friends And Related Symbol Documentation

◆ XSObjectFactory

friend class XSObjectFactory
friend

Member Data Documentation

◆ fAnnotation

XSAnnotation* XSAttributeDeclaration::fAnnotation
protected

Referenced by getAnnotation().

◆ fAttDef

SchemaAttDef* XSAttributeDeclaration::fAttDef
protected

◆ fEnclosingCTDefinition

XSComplexTypeDefinition* XSAttributeDeclaration::fEnclosingCTDefinition
protected

◆ fScope

XSConstants::SCOPE XSAttributeDeclaration::fScope
protected

Referenced by getScope().

◆ fTypeDefinition

XSSimpleTypeDefinition* XSAttributeDeclaration::fTypeDefinition
protected

Referenced by getTypeDefinition().


The documentation for this class was generated from the following file: