00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XALAN_ELEMSORT_HEADER_GUARD) 00019 #define XALAN_ELEMSORT_HEADER_GUARD 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include "XSLTDefinitions.hpp" 00025 00026 00027 00028 // Base class header file. 00029 #include "AVT.hpp" 00030 #include "ElemTemplateElement.hpp" 00031 00032 00033 00034 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00035 00036 00037 00038 XALAN_CPP_NAMESPACE_BEGIN 00039 00040 00041 00042 class XPath; 00043 class AVT; 00044 00045 00046 00047 class ElemSort: public ElemTemplateElement 00048 { 00049 public: 00050 00051 /** 00052 * Construct an object corresponding to an "xsl:sort" element 00053 * 00054 * @param constructionContext context for construction of object 00055 * @param stylesheetTree stylesheet containing element 00056 * @param atts list of attributes for element 00057 * @param lineNumber line number in document 00058 * @param columnNumber column number in document 00059 */ 00060 ElemSort( 00061 StylesheetConstructionContext& constructionContext, 00062 Stylesheet& stylesheetTree, 00063 const AttributeListType& atts, 00064 XalanFileLoc lineNumber, 00065 XalanFileLoc columnNumber); 00066 00067 static ElemSort* 00068 create( 00069 MemoryManager& theManager, 00070 StylesheetConstructionContext& constructionContext, 00071 Stylesheet& stylesheetTree, 00072 const AttributeListType& atts, 00073 XalanFileLoc lineNumber, 00074 XalanFileLoc columnNumber); 00075 00076 ~ElemSort(); 00077 00078 /** 00079 * Retrieve the language attribute value template(AVT) 00080 * 00081 * @return the language AVT 00082 */ 00083 const AVT* 00084 getLangAVT() const 00085 { 00086 return m_langAVT; 00087 } 00088 00089 /** 00090 * Retrieve the order attribute value template(AVT) 00091 * 00092 * @return the order AVT 00093 */ 00094 const AVT* 00095 getOrderAVT() const 00096 { 00097 return m_orderAVT; 00098 } 00099 00100 /** 00101 * Retrieve the case-order attribute value template(AVT) 00102 * 00103 * @return the case-order AVT 00104 */ 00105 const AVT* 00106 getCaseOrderAVT() const 00107 { 00108 return m_caseOrderAVT; 00109 } 00110 00111 /** 00112 * Retrieve the data type attribute value template(AVT) 00113 * 00114 * @return the data type AVT 00115 */ 00116 const AVT* 00117 getDataTypeAVT() const 00118 { 00119 return m_dataTypeAVT; 00120 } 00121 00122 /** 00123 * Retrieve the select pattern 00124 * 00125 * @return XPath corresponding to the select pattern 00126 */ 00127 const XPath* 00128 getSelectPattern() const 00129 { 00130 return m_selectPattern; 00131 } 00132 00133 virtual const XalanDOMString& 00134 getElementName() const; 00135 00136 virtual const XPath* 00137 getXPath(XalanSize_t index = 0) const; 00138 00139 private: 00140 00141 const XPath* m_selectPattern; 00142 00143 const AVT* m_langAVT; 00144 const AVT* m_dataTypeAVT; 00145 const AVT* m_orderAVT; 00146 const AVT* m_caseOrderAVT; 00147 }; 00148 00149 00150 00151 XALAN_CPP_NAMESPACE_END 00152 00153 00154 00155 #endif // XALAN_ELEMSORT_HEADER_GUARD
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|