Xalan-C++ API Reference 1.12.0
ElemDecimalFormat.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_ELEMDECIMALFORMAT_HEADER_GUARD)
19#define XALAN_ELEMDECIMALFORMAT_HEADER_GUARD
20
21
22
23// Base include file. Must be first.
24#include "XSLTDefinitions.hpp"
25
26
27
28// Base class header file.
30
31
32
34
35
36
37namespace XALAN_CPP_NAMESPACE {
38
39
40
41class XPath;
42
43
44
46{
47public:
48
49 /**
50 * Construct an object corresponding to a decimal-format element
51 *
52 * @param constructionContext context for construction of object
53 * @param stylesheetTree stylesheet containing element
54 * @param atts list of attributes for element
55 * @param lineNumber line number in document
56 * @param columnNumber column number in document
57 */
64
65
67
68 // These methods are inherited from ElemTemplateElement ...
69
70 virtual const XalanDOMString&
72
75 {
76 return m_decimalFormatSymbols;
77 }
78
79 const XalanQName&
80 getQName() const
81 {
82 assert(m_qname != 0);
83
84 return *m_qname;
85 }
86
87 virtual const XPath*
88 getXPath(XalanSize_t index) const;
89
90private:
91
92 const XPath* m_countMatchPattern;
93 const XPath* m_fromMatchPattern;
94 const XPath* m_valueExpr;
95
96 const XalanQName* m_qname;
97
98 XalanDecimalFormatSymbols m_decimalFormatSymbols;
99};
100
101
102
103}
104
105
106
107#endif // XALAN_ELEMEMPTY_HEADER_GUARD
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
ElemDecimalFormat(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const AttributeListType &atts, XalanFileLoc lineNumber, XalanFileLoc columnNumber)
Construct an object corresponding to a decimal-format element.
virtual const XPath * getXPath(XalanSize_t index) const
Get XPath pattern/expression of one of the element atribute.
virtual const XalanDOMString & getElementName() const
Get a string for the name of the element.
const XalanQName & getQName() const
const XalanDecimalFormatSymbols & getDecimalFormatSymbols() const
This class represents the base stylesheet or an "import" stylesheet.
Class to represent a qualified name.
xercesc::AttributeList AttributeListType