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
25class XQILLA_API ContentSequenceFilter : public EventFilter
26{
27public:
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
44private:
45 bool lastWasAtomic_;
46};
47
48#endif
AtomicObjectType
Definition AnyAtomicType.hpp:34
virtual void textEvent(const XMLCh *chars, unsigned int length)
Handles a text node as an event.
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.
virtual void endEvent()
Called when all events have been reported.
virtual void startElementEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname)
Handles the start of an element node as an event.
virtual void piEvent(const XMLCh *target, const XMLCh *value)
Handles a processing instruction node as an event.
virtual void atomicItemEvent(AnyAtomicType::AtomicObjectType type, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)
Handles an atomic item as an event.
ContentSequenceFilter(EventHandler *next)
virtual void commentEvent(const XMLCh *value)
Handles a comment node as an event.
virtual void endDocumentEvent()
Handles a document node as an event.
virtual void namespaceEvent(const XMLCh *prefix, const XMLCh *uri)
Handles a namespace binding as an event.
virtual void startDocumentEvent(const XMLCh *documentURI, const XMLCh *encoding)
Handles a document node as an event.
virtual void textEvent(const XMLCh *value)
Handles a text node as an event.
EventFilter(EventHandler *next)
Definition EventHandler.hpp:70
Definition EventHandler.hpp:30