include
xqilla
context
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, 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 _UPDATEFACTORY_HPP
21
#define _UPDATEFACTORY_HPP
22
23
#include <xqilla/framework/XQillaExport.hpp>
24
#include <
xqilla/schema/DocumentCache.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
:
57
DocumentCache::ValidationMode
valMode_
;
58
};
59
60
#endif
UpdateFactory::applyDelete
virtual void applyDelete(const PendingUpdate &update, DynamicContext *context)=0
DynamicContext
The execution time dynamic context interface.
Definition:
DynamicContext.hpp:39
UpdateFactory::~UpdateFactory
virtual ~UpdateFactory()
Definition:
UpdateFactory.hpp:35
DocumentCache.hpp
UpdateFactory::applyInsertAttributes
virtual void applyInsertAttributes(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory::applyReplaceValue
virtual void applyReplaceValue(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory::completeUpdate
virtual void completeUpdate(DynamicContext *context)=0
UpdateFactory::applyInsertAsFirst
virtual void applyInsertAsFirst(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory::applyInsertAfter
virtual void applyInsertAfter(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory::applyReplaceAttribute
virtual void applyReplaceAttribute(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory::applyReplaceElementContent
virtual void applyReplaceElementContent(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory::applyInsertAsLast
virtual void applyInsertAsLast(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory
Definition:
UpdateFactory.hpp:33
UpdateFactory::applyRename
virtual void applyRename(const PendingUpdate &update, DynamicContext *context)=0
DocumentCache::ValidationMode
ValidationMode
Definition:
DocumentCache.hpp:58
UpdateFactory::checkUpdates
virtual void checkUpdates(const PendingUpdateList &pul, DynamicContext *context, DocumentCache::ValidationMode valMode)
Definition:
UpdateFactory.hpp:38
UpdateFactory::applyPut
virtual void applyPut(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory::valMode_
DocumentCache::ValidationMode valMode_
Definition:
UpdateFactory.hpp:57
UpdateFactory::applyReplaceNode
virtual void applyReplaceNode(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory::applyInsertBefore
virtual void applyInsertBefore(const PendingUpdate &update, DynamicContext *context)=0
UpdateFactory::applyUpdates
virtual void applyUpdates(const PendingUpdateList &pul, DynamicContext *context, DocumentCache::ValidationMode valMode)
UpdateFactory::applyInsertInto
virtual void applyInsertInto(const PendingUpdate &update, DynamicContext *context)=0
XMemory.hpp
Generated by
1.8.18