Xerces-C++
3.1.2
|
Public Types | |
enum | VALIDITY_STATE { VALIDITY_NOTKNOWN = 0, VALIDITY_INVALID = 1, VALIDITY_VALID = 2 } |
enum | ASSESSMENT_TYPE { VALIDATION_NONE = 0, VALIDATION_PARTIAL = 1, VALIDATION_FULL = 2 } |
Public Member Functions | |
virtual XSValue * | getActualValue () const |
Get actual value in the form of XSValue, caller needs to delete the object returned. More... | |
Constructors | |
PSVIItem (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
The default constructor. More... | |
Destructor | |
virtual | ~PSVIItem () |
PSVIItem methods | |
const XMLCh * | getValidationContext () |
[validation context] More... | |
VALIDITY_STATE | getValidity () const |
Determine the validity of the node with respect to the validation being attempted. More... | |
ASSESSMENT_TYPE | getValidationAttempted () const |
Determines the extent to which the item has been validated. More... | |
const XMLCh * | getSchemaNormalizedValue () |
A list of error codes generated from validation attempts. More... | |
virtual XSTypeDefinition * | getTypeDefinition ()=0 |
An item isomorphic to the type definition used to validate this element. More... | |
virtual XSSimpleTypeDefinition * | getMemberTypeDefinition ()=0 |
If and only if that type definition is a simple type definition with {variety} union, or a complex type definition whose {content type} is a simple thype definition with {variety} union, then an item isomorphic to that member of the union's {member type definitions} which actually validated the element item's normalized value. More... | |
const XMLCh * | getSchemaDefault () |
[schema default] More... | |
bool | getIsSchemaSpecified () const |
[schema specified] More... | |
const XMLCh * | getCanonicalRepresentation () const |
Return the canonical representation of this value. More... | |
void | setValidationAttempted (PSVIItem::ASSESSMENT_TYPE attemptType) |
methods needed by implementation More... | |
void | setValidity (PSVIItem::VALIDITY_STATE validity) |
void | reset (const XMLCh *const validationContext, const XMLCh *const normalizedValue, const VALIDITY_STATE validityState, const ASSESSMENT_TYPE assessmentType) |
reset the object More... | |
Public Member Functions inherited from XMemory | |
void * | operator new (size_t size) |
This method overrides operator new. More... | |
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. More... | |
void * | operator new (size_t size, void *ptr) |
This method overrides placement operator new. More... | |
void | operator delete (void *p) |
This method overrides operator delete. More... | |
void | operator delete (void *p, MemoryManager *memMgr) |
This method provides a matching delete for the custom operator new. More... | |
void | operator delete (void *p, void *ptr) |
This method provides a matching delete for the placement new. More... | |
Protected Attributes | |
MemoryManager *const | fMemoryManager |
const XMLCh * | fValidationContext |
const XMLCh * | fNormalizedValue |
const XMLCh * | fDefaultValue |
XMLCh * | fCanonicalValue |
VALIDITY_STATE | fValidityState |
ASSESSMENT_TYPE | fAssessmentType |
bool | fIsSpecified |
XSTypeDefinition * | fType |
XSSimpleTypeDefinition * | fMemberType |
Additional Inherited Members | |
Protected Member Functions inherited from XMemory | |
XMemory () | |
Protected default constructor. More... | |
PSVIItem::PSVIItem | ( | MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager | ) |
The default constructor.
manager | The configurable memory manager |
|
virtual |
|
virtual |
const XMLCh * PSVIItem::getCanonicalRepresentation | ( | ) | const |
Return the canonical representation of this value.
Note that, formally, this is not a PSVI property.
References fCanonicalValue.
bool PSVIItem::getIsSchemaSpecified | ( | ) | const |
[schema specified]
References fIsSpecified.
|
pure virtual |
If and only if that type definition is a simple type definition with {variety} union, or a complex type definition whose {content type} is a simple thype definition with {variety} union, then an item isomorphic to that member of the union's {member type definitions} which actually validated the element item's normalized value.
Implemented in PSVIElement, and PSVIAttribute.
const XMLCh * PSVIItem::getSchemaDefault | ( | ) |
[schema default]
References fDefaultValue.
const XMLCh * PSVIItem::getSchemaNormalizedValue | ( | ) |
A list of error codes generated from validation attempts.
Need to find all the possible sub-clause reports that need reporting
References fNormalizedValue.
|
pure virtual |
An item isomorphic to the type definition used to validate this element.
Implemented in PSVIElement, and PSVIAttribute.
PSVIItem::ASSESSMENT_TYPE PSVIItem::getValidationAttempted | ( | ) | const |
Determines the extent to which the item has been validated.
References fAssessmentType.
const XMLCh * PSVIItem::getValidationContext | ( | ) |
[validation context]
References fValidationContext.
PSVIItem::VALIDITY_STATE PSVIItem::getValidity | ( | ) | const |
Determine the validity of the node with respect to the validation being attempted.
References fValidityState.
void PSVIItem::reset | ( | const XMLCh *const | validationContext, |
const XMLCh *const | normalizedValue, | ||
const VALIDITY_STATE | validityState, | ||
const ASSESSMENT_TYPE | assessmentType | ||
) |
reset the object
validationContext | corresponds to schema validation context property |
normalizedValue | corresponds to schema normalized value property |
validityState | state of item's validity |
assessmentType | type of assessment carried out on item |
void PSVIItem::setValidationAttempted | ( | PSVIItem::ASSESSMENT_TYPE | attemptType | ) |
methods needed by implementation
void PSVIItem::setValidity | ( | PSVIItem::VALIDITY_STATE | validity | ) |
|
protected |
Referenced by getValidationAttempted().
|
protected |
Referenced by getCanonicalRepresentation(), and PSVIAttribute::~PSVIAttribute().
|
protected |
Referenced by getSchemaDefault().
|
protected |
Referenced by getIsSchemaSpecified().
|
protected |
Referenced by PSVIAttribute::getMemberTypeDefinition().
|
protected |
Referenced by PSVIAttribute::~PSVIAttribute().
|
protected |
Referenced by getSchemaNormalizedValue().
|
protected |
Referenced by PSVIAttribute::getTypeDefinition().
|
protected |
Referenced by getValidationContext().
|
protected |
Referenced by getValidity(), and PSVIAttribute::updateValidity().