SourceForge.net Logo
UpdateFactory.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2001, 2008,
3  * DecisionSoft Limited. All rights reserved.
4  * Copyright (c) 2004, 2018 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 _UPDATEFACTORY_HPP
21 #define _UPDATEFACTORY_HPP
22 
23 #include <xqilla/framework/XQillaExport.hpp>
25 
26 #include <xercesc/util/XMemory.hpp>
27 
28 class PendingUpdateList;
29 class PendingUpdate;
30 class DynamicContext;
31 
32 class XQILLA_API UpdateFactory : public XERCES_CPP_NAMESPACE_QUALIFIER XMemory
33 {
34 public:
35  virtual ~UpdateFactory() {}
36 
37  virtual void applyUpdates(const PendingUpdateList &pul, DynamicContext *context, DocumentCache::ValidationMode valMode);
38  virtual void checkUpdates(const PendingUpdateList &pul, DynamicContext *context, DocumentCache::ValidationMode valMode) {}
39 
40  virtual void applyPut(const PendingUpdate &update, DynamicContext *context) = 0;
41  virtual void applyInsertInto(const PendingUpdate &update, DynamicContext *context) = 0;
42  virtual void applyInsertAttributes(const PendingUpdate &update, DynamicContext *context) = 0;
43  virtual void applyReplaceValue(const PendingUpdate &update, DynamicContext *context) = 0;
44  virtual void applyRename(const PendingUpdate &update, DynamicContext *context) = 0;
45  virtual void applyDelete(const PendingUpdate &update, DynamicContext *context) = 0;
46  virtual void applyInsertBefore(const PendingUpdate &update, DynamicContext *context) = 0;
47  virtual void applyInsertAfter(const PendingUpdate &update, DynamicContext *context) = 0;
48  virtual void applyInsertAsFirst(const PendingUpdate &update, DynamicContext *context) = 0;
49  virtual void applyInsertAsLast(const PendingUpdate &update, DynamicContext *context) = 0;
50  virtual void applyReplaceNode(const PendingUpdate &update, DynamicContext *context) = 0;
51  virtual void applyReplaceAttribute(const PendingUpdate &update, DynamicContext *context) = 0;
52  virtual void applyReplaceElementContent(const PendingUpdate &update, DynamicContext *context) = 0;
53 
54  virtual void completeUpdate(DynamicContext *context) = 0;
55 
56 protected:
58 };
59 
60 #endif
DocumentCache::ValidationMode valMode_
Definition: UpdateFactory.hpp:57
ValidationMode
Definition: DocumentCache.hpp:58
virtual ~UpdateFactory()
Definition: UpdateFactory.hpp:35
Definition: UpdateFactory.hpp:32
The execution time dynamic context interface.
Definition: DynamicContext.hpp:38
virtual void checkUpdates(const PendingUpdateList &pul, DynamicContext *context, DocumentCache::ValidationMode valMode)
Definition: UpdateFactory.hpp:38