Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ElemVariable.hpp

Go to the documentation of this file.
00001 /* 00002 * Copyright 1999-2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #if !defined(XALAN_ELEMVARIABLE_HEADER_GUARD) 00017 #define XALAN_ELEMVARIABLE_HEADER_GUARD 00018 00028 // Base include file. Must be first. 00029 #include "XSLTDefinitions.hpp" 00030 00031 // Base class header file. 00032 #include "ElemTemplateElement.hpp" 00033 00034 00035 00036 #include <xalanc/XPath/XObject.hpp> 00037 00038 00039 00040 #include <xalanc/XSLT/Constants.hpp> 00041 00042 00043 00044 XALAN_CPP_NAMESPACE_BEGIN 00045 00046 00047 00048 class XPath; 00049 00050 00051 00052 class ElemVariable : public ElemTemplateElement 00053 { 00054 public: 00055 00056 typedef ElemTemplateElement ParentType; 00057 00067 ElemVariable( 00068 StylesheetConstructionContext& constructionContext, 00069 Stylesheet& stylesheetTree, 00070 const AttributeListType& atts, 00071 int lineNumber, 00072 int columnNumber); 00073 00074 virtual 00075 ~ElemVariable(); 00076 00082 bool 00083 isTopLevel() const 00084 { 00085 return m_isTopLevel; 00086 } 00087 00088 // These methods are inherited from ElemTemplateElement ... 00089 00090 virtual const XalanQName& 00091 getNameAttribute() const; 00092 00093 virtual void 00094 addToStylesheet( 00095 StylesheetConstructionContext& constructionContext, 00096 Stylesheet& theStylesheet); 00097 00098 virtual const XalanDOMString& 00099 getElementName() const; 00100 00101 virtual void 00102 execute(StylesheetExecutionContext& executionContext) const; 00103 00104 const XObjectPtr 00105 getValue( 00106 StylesheetExecutionContext& executionContext, 00107 XalanNode* sourceNode) const; 00108 00109 virtual void 00110 setParentNodeElem(ElemTemplateElement* theParent); 00111 00112 virtual const XPath* 00113 getXPath(unsigned int index = 0) const; 00114 00115 protected: 00116 00126 ElemVariable( 00127 StylesheetConstructionContext& constructionContext, 00128 Stylesheet& stylesheetTree, 00129 const AttributeListType& atts, 00130 int lineNumber, 00131 int columnNumber, 00132 int xslToken); 00133 00141 void 00142 init( 00143 StylesheetConstructionContext& constructionContext, 00144 Stylesheet& stylesheetTree, 00145 const AttributeListType& atts); 00146 00147 00148 const XalanQName* m_qname; 00149 00150 private: 00151 00152 // not implemented 00153 ElemVariable(const ElemVariable &); 00154 00155 ElemVariable& 00156 operator=(const ElemVariable &); 00157 00158 const XPath* m_selectPattern; 00159 00160 bool m_isTopLevel; 00161 00162 XObjectPtr m_value; 00163 00164 XalanNode* m_varContext; 00165 }; 00166 00167 00168 00169 XALAN_CPP_NAMESPACE_END 00170 00171 00172 00173 #endif // XALAN_ELEMVARIABLE_HEADER_GUARD

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.