#include <xercesc/framework/psvi/XSElementDeclaration.hpp>
|
|
| XSElementDeclaration (SchemaElementDecl *const schemaElementDecl, XSTypeDefinition *const typeDefinition, XSElementDeclaration *const substitutionGroupAffiliation, XSAnnotation *const annot, XSNamedMap< XSIDCDefinition > *const identityConstraints, XSModel *const xsModel, XSConstants::SCOPE elemScope=XSConstants::SCOPE_ABSENT, XSComplexTypeDefinition *const enclosingTypeDefinition=0, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) |
| The default constructor.
|
|
|
| ~XSElementDeclaration () |
|
|
const XMLCh * | getName () const |
| The name of type NCName of this declaration as defined in XML Namespaces.
|
|
const XMLCh * | getNamespace () const |
| The [target namespace] of this object, or null if it is unspecified.
|
|
XSNamespaceItem * | getNamespaceItem () |
| A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise.
|
|
| 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
|
|
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.
|
|
◆ XSElementDeclaration()
The default constructor.
- Parameters
-
schemaElementDecl | |
typeDefinition | |
substitutionGroupAffiliation | |
annot | |
identityConstraints | |
xsModel | |
elemScope | |
enclosingTypeDefinition | |
manager | The configurable memory manager |
◆ ~XSElementDeclaration()
XSElementDeclaration::~XSElementDeclaration |
( |
| ) |
|
◆ getAbstract()
bool XSElementDeclaration::getAbstract |
( |
| ) |
const |
◆ getAnnotation()
XSAnnotation * XSElementDeclaration::getAnnotation |
( |
| ) |
const |
◆ getConstraintType()
[Value constraint]: one of VC_NONE, VC_DEFAULT, VC_FIXED
.
◆ getConstraintValue()
const XMLCh * XSElementDeclaration::getConstraintValue |
( |
| ) |
|
[Value constraint]: the actual value with respect to the [type definition].
◆ getDisallowedSubstitutions()
short XSElementDeclaration::getDisallowedSubstitutions |
( |
| ) |
const |
[disallowed substitutions]: the returned value is a bit combination of the subset of { DERIVATION_SUBSTITUTION, DERIVATION_EXTENSION, DERIVATION_RESTRICTION
} corresponding to substitutions disallowed by this XSElementDeclaration
or DERIVATION_NONE
.
References fDisallowedSubstitutions.
◆ getEnclosingCTDefinition()
◆ getIdentityConstraints()
◆ getName()
const XMLCh * XSElementDeclaration::getName |
( |
| ) |
const |
|
virtual |
The name of type NCName
of this declaration as defined in XML Namespaces.
Reimplemented from XSObject.
◆ getNamespace()
const XMLCh * XSElementDeclaration::getNamespace |
( |
| ) |
const |
|
virtual |
The [target namespace] of this object, or null
if it is unspecified.
Reimplemented from XSObject.
◆ getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise.
Reimplemented from XSObject.
◆ getNillable()
bool XSElementDeclaration::getNillable |
( |
| ) |
const |
If nillable is true, then an element may also be valid if it carries the namespace qualified attribute with local name nil
from namespace http://www.w3.org/2001/XMLSchema-instance
and value true
(xsi:nil) even if it has no text or element content despite a content type
which would otherwise require content.
◆ getScope()
Optional.
One of SCOPE_GLOBAL
, SCOPE_LOCAL
, or SCOPE_ABSENT
. If the scope is local, then the enclosingCTDefinition
is present.
References fScope.
◆ getSubstitutionGroupAffiliation()
◆ getSubstitutionGroupExclusions()
short XSElementDeclaration::getSubstitutionGroupExclusions |
( |
| ) |
const |
[substitution group exclusions]: the returned value is a bit combination of the subset of { DERIVATION_EXTENSION, DERIVATION_RESTRICTION
} or DERIVATION_NONE
.
References fSubstitutionGroupExclusions.
◆ getTypeDefinition()
[type definition]: either a simple type definition or a complex type definition.
References fTypeDefinition.
◆ isDisallowedSubstitution()
Convenience method.
Check if disallowed
is a disallowed substitution for this element declaration.
- Parameters
-
disallowed | { DERIVATION_SUBSTITUTION, DERIVATION_EXTENSION, DERIVATION_RESTRICTION } or DERIVATION_NONE . Represents a block set for the element. |
- Returns
- True if
disallowed
is a part of the substitution group exclusion subset.
◆ isSubstitutionGroupExclusion()
Convenience method.
Check if exclusion
is a substitution group exclusion for this element declaration.
- Parameters
-
exclusion |
DERIVATION_EXTENSION, DERIVATION_RESTRICTION or DERIVATION_NONE . Represents final set for the element. |
- Returns
- True if
exclusion
is a part of the substitution group exclusion subset.
◆ setTypeDefinition()
void XSElementDeclaration::setTypeDefinition |
( |
XSTypeDefinition * | typeDefinition | ) |
|
◆ XSObjectFactory
friend class XSObjectFactory |
|
friend |
◆ fAnnotation
◆ fDisallowedSubstitutions
short XSElementDeclaration::fDisallowedSubstitutions |
|
protected |
◆ fEnclosingTypeDefinition
◆ fIdentityConstraints
◆ fSchemaElementDecl
SchemaElementDecl* XSElementDeclaration::fSchemaElementDecl |
|
protected |
◆ fScope
◆ fSubstitutionGroupAffiliation
◆ fSubstitutionGroupExclusions
short XSElementDeclaration::fSubstitutionGroupExclusions |
|
protected |
◆ fTypeDefinition
The documentation for this class was generated from the following file: