Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

ElemAttributeSet.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_ELEMATTRIBUTESET_HEADER_GUARD)
17 #define XALAN_ELEMATTRIBUTESET_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 "ElemUse.hpp"
28 
29 
30 
31 XALAN_CPP_NAMESPACE_BEGIN
32 
33 
34 
35 class ElemAttributeSet : public ElemUse
36 {
37 public:
38 
49  StylesheetConstructionContext& constructionContext,
50  Stylesheet& stylesheetTree,
51  const AttributeListType& atts,
52  int lineNumber,
53  int columnNumber);
54 
55  virtual
57 
63  const XalanQName&
64  getQName() const
65  {
66  assert(m_qname != 0);
67 
68  return *m_qname;
69  }
70 
71 
72  // These methods are inherited from ElemUse ...
73 
74  virtual const XalanDOMString&
75  getElementName() const;
76 
77 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
78  virtual const ElemTemplateElement*
79  startElement(StylesheetExecutionContext& executionContext) const;
80 
81  virtual void
82  endElement(StylesheetExecutionContext& executionContext) const;
83 
84  const ElemTemplateElement*
85  getInvoker(StylesheetExecutionContext& executionContext) const;
86 #else
87  virtual void
88  execute(StylesheetExecutionContext& executionContext) const;
89 #endif
90 
91  virtual void
93  StylesheetConstructionContext& constructionContext,
94  Stylesheet& theStylesheet);
95 
96 protected:
97 
98  virtual bool
99  childTypeAllowed(int xslToken) const;
100 
101 private:
102 
103  const XalanQName* m_qname;
104 };
105 
106 
107 
108 inline bool
110  const ElemAttributeSet& theLHS,
111  const ElemAttributeSet& theRHS)
112 {
113  return theLHS.getQName() == theRHS.getQName();
114 }
115 
116 
117 
118 inline bool
120  const ElemAttributeSet& theLHS,
121  const ElemAttributeSet& theRHS)
122 {
123  return theLHS.getQName() < theRHS.getQName();
124 }
125 
126 
127 
128 XALAN_CPP_NAMESPACE_END
129 
130 
131 
132 #endif // XALAN_ELEMATTRIBUTESET_HEADER_GUARD
const XalanQName & getQName() const
Retrieves qualified name of object.
Definition: ElemAttributeSet.hpp:64
XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
Definition: AttributeListImpl.hpp:39
const ElemTemplateElement * getInvoker(StylesheetExecutionContext &executionContext) const
Returns the element that invoked this element.
Definition: ElemTemplateElement.hpp:74
virtual bool childTypeAllowed(int xslToken) const
Given an xsl token type, determine whether or not a child of that type is allowed.
Definition: StylesheetExecutionContext.hpp:104
virtual ~ElemAttributeSet()
virtual const ElemTemplateElement * startElement(StylesheetExecutionContext &executionContext) const
Completes "pre-processing" before any sub-elements are invoked (i.e.
ElemAttributeSet(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const AttributeListType &atts, int lineNumber, int columnNumber)
Construct an object corresponding to an "xsl:attribute-set" element.
virtual void addToStylesheet(StylesheetConstructionContext &constructionContext, Stylesheet &theStylesheet)
Called during compilation when an instance is not parented by another element, and thus...
Definition: ElemAttributeSet.hpp:35
bool operator<(const ElemAttributeSet &theLHS, const ElemAttributeSet &theRHS)
Definition: ElemAttributeSet.hpp:119
virtual void endElement(StylesheetExecutionContext &executionContext) const
Completes "post-processing" afer any sub-elements are invoked (i.e.
Definition: XalanDOMString.hpp:42
bool operator==(const ElemAttributeSet &theLHS, const ElemAttributeSet &theRHS)
Definition: ElemAttributeSet.hpp:109
Definition: ElemUse.hpp:35
Definition: StylesheetConstructionContext.hpp:73
virtual void execute(StylesheetExecutionContext &executionContext) const
Execute the element.
This class represents the base stylesheet or an "import" stylesheet.
Definition: Stylesheet.hpp:84
Class to represent a qualified name: "The name of an internal XSLT object, specifically a named templ...
Definition: XalanQName.hpp:68
virtual const XalanDOMString & getElementName() const
Get a string for the name of the element.

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