Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

ElemSort.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALAN_ELEMSORT_HEADER_GUARD)
17 #define XALAN_ELEMSORT_HEADER_GUARD
18 
19 
20 
21 // Base include file. Must be first.
22 #include "XSLTDefinitions.hpp"
23 
24 
25 
26 // Base class header file.
27 #include "AVT.hpp"
28 #include "ElemTemplateElement.hpp"
29 
30 
31 
33 
34 
35 
36 XALAN_CPP_NAMESPACE_BEGIN
37 
38 
39 
40 class XPath;
41 class AVT;
42 
43 
44 
46 {
47 public:
48 
58  ElemSort(
59  StylesheetConstructionContext& constructionContext,
60  Stylesheet& stylesheetTree,
61  const AttributeListType& atts,
62  int lineNumber,
63  int columnNumber);
64 
65  static ElemSort*
66  create(
67  MemoryManagerType& theManager,
68  StylesheetConstructionContext& constructionContext,
69  Stylesheet& stylesheetTree,
70  const AttributeListType& atts,
71  int lineNumber,
72  int columnNumber);
73 
74  ~ElemSort();
75 
81  const AVT*
82  getLangAVT() const
83  {
84  return m_langAVT;
85  }
86 
92  const AVT*
93  getOrderAVT() const
94  {
95  return m_orderAVT;
96  }
97 
103  const AVT*
105  {
106  return m_caseOrderAVT;
107  }
108 
114  const AVT*
116  {
117  return m_dataTypeAVT;
118  }
119 
125  const XPath*
127  {
128  return m_selectPattern;
129  }
130 
131  virtual const XalanDOMString&
132  getElementName() const;
133 
134  virtual const XPath*
135  getXPath(unsigned int index = 0) const;
136 
137 private:
138 
139  const XPath* m_selectPattern;
140 
141  const AVT* m_langAVT;
142  const AVT* m_dataTypeAVT;
143  const AVT* m_orderAVT;
144  const AVT* m_caseOrderAVT;
145 };
146 
147 
148 
149 XALAN_CPP_NAMESPACE_END
150 
151 
152 
153 #endif // XALAN_ELEMSORT_HEADER_GUARD
virtual const XPath * getXPath(unsigned int index=0) const
Get XPath pattern/expression of one of the element atribute.
Definition: ElemSort.hpp:45
XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
Definition: AttributeListImpl.hpp:39
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
Definition: ElemTemplateElement.hpp:74
ElemSort(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const AttributeListType &atts, int lineNumber, int columnNumber)
Construct an object corresponding to an "xsl:sort" element.
Definition: XPath.hpp:62
const AVT * getLangAVT() const
Retrieve the language attribute value template(AVT)
Definition: ElemSort.hpp:82
Class to hold an Attribute Value Template.
Definition: AVT.hpp:52
virtual const XalanDOMString & getElementName() const
Get a string for the name of the element.
const AVT * getDataTypeAVT() const
Retrieve the data type attribute value template(AVT)
Definition: ElemSort.hpp:115
const XPath * getSelectPattern() const
Retrieve the select pattern.
Definition: ElemSort.hpp:126
const AVT * getCaseOrderAVT() const
Retrieve the case-order attribute value template(AVT)
Definition: ElemSort.hpp:104
Definition: XalanDOMString.hpp:42
Definition: StylesheetConstructionContext.hpp:73
This class represents the base stylesheet or an "import" stylesheet.
Definition: Stylesheet.hpp:84
const AVT * getOrderAVT() const
Retrieve the order attribute value template(AVT)
Definition: ElemSort.hpp:93
static ElemSort * create(MemoryManagerType &theManager, StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const AttributeListType &atts, int lineNumber, int columnNumber)

Interpreting class diagrams

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

dot

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

Apache Logo