SourceForge.net Logo
ContentSequenceFilter.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2001-2008
3  * DecisionSoft Limited. All rights reserved.
4  * Copyright (c) 2004-2008
5  * Oracle. All rights reserved.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * $Id$
20  */
21 
22 #ifndef _CONTENTSEQUENCEFILTER_HPP
23 #define _CONTENTSEQUENCEFILTER_HPP
24 
26 
27 class XQILLA_API ContentSequenceFilter : public EventFilter
28 {
29 public:
31 
32  virtual void startDocumentEvent(const XMLCh *documentURI, const XMLCh *encoding);
33  virtual void endDocumentEvent();
34  virtual void endEvent();
35  virtual void startElementEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname);
36  virtual void piEvent(const XMLCh *target, const XMLCh *value);
37  virtual void textEvent(const XMLCh *value);
38  virtual void textEvent(const XMLCh *chars, unsigned int length);
39  virtual void commentEvent(const XMLCh *value);
40  virtual void attributeEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *value,
41  const XMLCh *typeURI, const XMLCh *typeName);
42  virtual void namespaceEvent(const XMLCh *prefix, const XMLCh *uri);
43  virtual void atomicItemEvent(AnyAtomicType::AtomicObjectType type, const XMLCh *value, const XMLCh *typeURI,
44  const XMLCh *typeName);
45 
46 private:
47  bool lastWasAtomic_;
48 };
49 
50 #endif
Definition: EventHandler.hpp:69
virtual void startElementEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname)
Handles the start of an element node as an event.
Definition: EventHandler.hpp:97
Definition: EventHandler.hpp:31
virtual void endDocumentEvent()
Handles a document node as an event.
Definition: EventHandler.hpp:92
AtomicObjectType
Definition: AnyAtomicType.hpp:36
virtual void namespaceEvent(const XMLCh *prefix, const XMLCh *uri)
Handles a namespace binding as an event.
Definition: EventHandler.hpp:134
virtual void startDocumentEvent(const XMLCh *documentURI, const XMLCh *encoding)
Handles a document node as an event.
Definition: EventHandler.hpp:87
Definition: ContentSequenceFilter.hpp:27
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.
Definition: EventHandler.hpp:128
virtual void endEvent()
Called when all events have been reported.
Definition: EventHandler.hpp:145
virtual void piEvent(const XMLCh *target, const XMLCh *value)
Handles a processing instruction node as an event.
Definition: EventHandler.hpp:108
virtual void commentEvent(const XMLCh *value)
Handles a comment node as an event.
Definition: EventHandler.hpp:123
virtual void atomicItemEvent(AnyAtomicType::AtomicObjectType type, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)
Handles an atomic item as an event.
Definition: EventHandler.hpp:139
virtual void textEvent(const XMLCh *value)
Handles a text node as an event.
Definition: EventHandler.hpp:113