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, 2015 Oracle and/or its affiliates. All rights reserved.
5  *
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 
20 #ifndef _CONTENTSEQUENCEFILTER_HPP
21 #define _CONTENTSEQUENCEFILTER_HPP
22 
24 
25 class XQILLA_API ContentSequenceFilter : public EventFilter
26 {
27 public:
29 
30  virtual void startDocumentEvent(const XMLCh *documentURI, const XMLCh *encoding);
31  virtual void endDocumentEvent();
32  virtual void endEvent();
33  virtual void startElementEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname);
34  virtual void piEvent(const XMLCh *target, const XMLCh *value);
35  virtual void textEvent(const XMLCh *value);
36  virtual void textEvent(const XMLCh *chars, unsigned int length);
37  virtual void commentEvent(const XMLCh *value);
38  virtual void attributeEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *value,
39  const XMLCh *typeURI, const XMLCh *typeName);
40  virtual void namespaceEvent(const XMLCh *prefix, const XMLCh *uri);
41  virtual void atomicItemEvent(AnyAtomicType::AtomicObjectType type, const XMLCh *value, const XMLCh *typeURI,
42  const XMLCh *typeName);
43 
44 private:
45  bool lastWasAtomic_;
46 };
47 
48 #endif
Definition: EventHandler.hpp:67
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:95
Definition: EventHandler.hpp:29
virtual void endDocumentEvent()
Handles a document node as an event.
Definition: EventHandler.hpp:90
AtomicObjectType
Definition: AnyAtomicType.hpp:34
virtual void namespaceEvent(const XMLCh *prefix, const XMLCh *uri)
Handles a namespace binding as an event.
Definition: EventHandler.hpp:132
virtual void startDocumentEvent(const XMLCh *documentURI, const XMLCh *encoding)
Handles a document node as an event.
Definition: EventHandler.hpp:85
Definition: ContentSequenceFilter.hpp:25
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:126
virtual void endEvent()
Called when all events have been reported.
Definition: EventHandler.hpp:143
virtual void piEvent(const XMLCh *target, const XMLCh *value)
Handles a processing instruction node as an event.
Definition: EventHandler.hpp:106
virtual void commentEvent(const XMLCh *value)
Handles a comment node as an event.
Definition: EventHandler.hpp:121
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:137
virtual void textEvent(const XMLCh *value)
Handles a text node as an event.
Definition: EventHandler.hpp:111