SourceForge.net Logo
Public Member Functions | List of all members
SchemaValidatorFilter Class Reference

The SchemaValidatorFilter class will modify the incoming event stream by validating it against the schema definitions found in the DynamicContext's DocumentCache. More...

#include <SchemaValidatorFilter.hpp>

Inheritance diagram for SchemaValidatorFilter:
Inheritance graph
[legend]

Public Member Functions

 SchemaValidatorFilter (bool strictValidation, EventHandler *next, xercesc::GrammarResolver *grammarResolver, xercesc::MemoryManager *mm, const LocationInfo *info)
 
virtual ~SchemaValidatorFilter ()
 
void reset ()
 
virtual void startDocumentEvent (const XMLCh *documentURI, const XMLCh *encoding)
 Handles a document node as an event. More...
 
virtual void endDocumentEvent ()
 Handles a document node as an event. More...
 
virtual void startElementEvent (const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname)
 Handles the start of an element node as an event. More...
 
virtual void endElementEvent (const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *typeURI, const XMLCh *typeName)
 Handles the end of an element node as an event. More...
 
virtual void piEvent (const XMLCh *target, const XMLCh *value)
 Handles a processing instruction node as an event. More...
 
virtual void textEvent (const XMLCh *value)
 Handles a text node as an event. More...
 
virtual void textEvent (const XMLCh *chars, unsigned int length)
 Handles a text node as an event. More...
 
virtual void commentEvent (const XMLCh *value)
 Handles a comment node as an event. More...
 
virtual void attributeEvent (const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)
 Handles an attribute node as an event. More...
 
virtual void namespaceEvent (const XMLCh *prefix, const XMLCh *uri)
 Handles a namespace binding as an event. More...
 
- Public Member Functions inherited from EventFilter
 EventFilter (EventHandler *next)
 
void setNextEventHandler (EventHandler *next)
 
virtual void setLocationInfo (const LocationInfo *location)
 Recieves a LocationInfo object that is owned by the caller, and will be updated with the current location information as the parse progresses. More...
 
virtual void atomicItemEvent (AnyAtomicType::AtomicObjectType type, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)
 Handles an atomic item as an event. More...
 
virtual void endEvent ()
 Called when all events have been reported. More...
 
- Public Member Functions inherited from EventHandler
virtual ~EventHandler ()
 

Additional Inherited Members

- Protected Attributes inherited from EventFilter
EventHandlernext_
 

Detailed Description

The SchemaValidatorFilter class will modify the incoming event stream by validating it against the schema definitions found in the DynamicContext's DocumentCache.

It will add typing information, as well as default values and attributes, and will normalize values according to the schema normalization rules.

Constructor & Destructor Documentation

◆ SchemaValidatorFilter()

SchemaValidatorFilter::SchemaValidatorFilter ( bool  strictValidation,
EventHandler next,
xercesc::GrammarResolver *  grammarResolver,
xercesc::MemoryManager mm,
const LocationInfo info 
)

◆ ~SchemaValidatorFilter()

virtual SchemaValidatorFilter::~SchemaValidatorFilter ( )
virtual

Member Function Documentation

◆ attributeEvent()

virtual void SchemaValidatorFilter::attributeEvent ( const XMLCh *  prefix,
const XMLCh *  uri,
const XMLCh *  localname,
const XMLCh *  value,
const XMLCh *  typeURI,
const XMLCh *  typeName 
)
virtual

Handles an attribute node as an event.

Reimplemented from EventFilter.

◆ commentEvent()

virtual void SchemaValidatorFilter::commentEvent ( const XMLCh *  value)
virtual

Handles a comment node as an event.

Reimplemented from EventFilter.

◆ endDocumentEvent()

virtual void SchemaValidatorFilter::endDocumentEvent ( )
virtual

Handles a document node as an event.

Reimplemented from EventFilter.

◆ endElementEvent()

virtual void SchemaValidatorFilter::endElementEvent ( const XMLCh *  prefix,
const XMLCh *  uri,
const XMLCh *  localname,
const XMLCh *  typeURI,
const XMLCh *  typeName 
)
virtual

Handles the end of an element node as an event.

Reimplemented from EventFilter.

◆ namespaceEvent()

virtual void SchemaValidatorFilter::namespaceEvent ( const XMLCh *  prefix,
const XMLCh *  uri 
)
virtual

Handles a namespace binding as an event.

Reimplemented from EventFilter.

◆ piEvent()

virtual void SchemaValidatorFilter::piEvent ( const XMLCh *  target,
const XMLCh *  value 
)
virtual

Handles a processing instruction node as an event.

Reimplemented from EventFilter.

◆ reset()

void SchemaValidatorFilter::reset ( )

◆ startDocumentEvent()

virtual void SchemaValidatorFilter::startDocumentEvent ( const XMLCh *  documentURI,
const XMLCh *  encoding 
)
virtual

Handles a document node as an event.

Reimplemented from EventFilter.

◆ startElementEvent()

virtual void SchemaValidatorFilter::startElementEvent ( const XMLCh *  prefix,
const XMLCh *  uri,
const XMLCh *  localname 
)
virtual

Handles the start of an element node as an event.

Reimplemented from EventFilter.

◆ textEvent() [1/2]

virtual void SchemaValidatorFilter::textEvent ( const XMLCh *  value)
virtual

Handles a text node as an event.

Reimplemented from EventFilter.

◆ textEvent() [2/2]

virtual void SchemaValidatorFilter::textEvent ( const XMLCh *  chars,
unsigned int  length 
)
virtual

Handles a text node as an event.

Reimplemented from EventFilter.


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