Xalan-C++ API Reference  1.12.0
AVTPart.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #if !defined(XALAN_AVTPART_HEADER_GUARD)
19 #define XALAN_AVTPART_HEADER_GUARD
20 
21 
22 
23 // Base include file. Must be first.
24 #include "XSLTDefinitions.hpp"
25 
26 
27 
28 namespace XALAN_CPP_NAMESPACE {
29 
30 
31 
32 class XalanDOMString;
33 class XalanNode;
34 class PrefixResolver;
35 class XPathExecutionContext;
36 
37 
38 
39 /**
40  * Class to hold a part, either a string or XPath,
41  * of an Attribute Value Template.
42  */
43 class AVTPart
44 {
45 public:
46 
47  AVTPart();
48 
49  virtual
50  ~AVTPart();
51 
52  /**
53  * Append the value to the buffer.
54  *
55  * @param buf buffer to write into
56  * @param contextNode current context node
57  * @param prefixResolver prefix resolver to use
58  * @param executionContext execution context
59  */
60  virtual void
61  evaluate(
62  XalanDOMString& buf,
63  XalanNode* contextNode,
64  const PrefixResolver& prefixResolver,
65  XPathExecutionContext& executionContext) const = 0;
66 
67  /**
68  * Append the value to the buffer.
69  *
70  * @param buf buffer to write into
71  * @param prefixResolver prefix resolver to use
72  * @param executionContext execution context
73  */
74  virtual void
75  evaluate(
76  XalanDOMString& buf,
77  const PrefixResolver& prefixResolver,
78  XPathExecutionContext& executionContext) const = 0;
79 };
80 
81 
82 
83 }
84 
85 
86 
87 #endif //XALAN_AVTPART_HEADER_GUARD
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XalanNode
Definition: XalanNode.hpp:38
xalanc::PrefixResolver
This class defines an interface for classes that resolve namespace prefixes to their URIs.
Definition: PrefixResolver.hpp:39
xalanc::AVTPart
Class to hold a part, either a string or XPath, of an Attribute Value Template.
Definition: AVTPart.hpp:43
XSLTDefinitions.hpp
xalanc::XPathExecutionContext
Definition: XPathExecutionContext.hpp:82
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45