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_ELEMATTRIBUTESET_HEADER_GUARD) 00019 #define XALAN_ELEMATTRIBUTESET_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 "ElemUse.hpp" 00030 00031 00032 00033 XALAN_CPP_NAMESPACE_BEGIN 00034 00035 00036 00037 class ElemAttributeSet : public ElemUse 00038 { 00039 public: 00040 00041 /** 00042 * Construct an object corresponding to an "xsl:attribute-set" element 00043 * 00044 * @param constructionContext context for construction of object 00045 * @param stylesheetTree stylesheet containing element 00046 * @param atts list of attributes for element 00047 * @param lineNumber line number in document 00048 * @param columnNumber column number in document 00049 */ 00050 ElemAttributeSet ( 00051 StylesheetConstructionContext& constructionContext, 00052 Stylesheet& stylesheetTree, 00053 const AttributeListType& atts, 00054 XalanFileLoc lineNumber, 00055 XalanFileLoc columnNumber); 00056 00057 virtual 00058 ~ElemAttributeSet(); 00059 00060 /** 00061 * Retrieves qualified name of object 00062 * 00063 * @return qualified name 00064 */ 00065 const XalanQName& 00066 getQName() const 00067 { 00068 assert(m_qname != 0); 00069 00070 return *m_qname; 00071 } 00072 00073 00074 // These methods are inherited from ElemUse ... 00075 00076 virtual const XalanDOMString& 00077 getElementName() const; 00078 00079 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION) 00080 virtual const ElemTemplateElement* 00081 startElement(StylesheetExecutionContext& executionContext) const; 00082 00083 virtual void 00084 endElement(StylesheetExecutionContext& executionContext) const; 00085 00086 const ElemTemplateElement* 00087 getInvoker(StylesheetExecutionContext& executionContext) const; 00088 #else 00089 virtual void 00090 execute(StylesheetExecutionContext& executionContext) const; 00091 #endif 00092 00093 virtual void 00094 addToStylesheet( 00095 StylesheetConstructionContext& constructionContext, 00096 Stylesheet& theStylesheet); 00097 00098 protected: 00099 00100 virtual bool 00101 childTypeAllowed(int xslToken) const; 00102 00103 private: 00104 00105 const XalanQName* m_qname; 00106 }; 00107 00108 00109 00110 inline bool 00111 operator==( 00112 const ElemAttributeSet& theLHS, 00113 const ElemAttributeSet& theRHS) 00114 { 00115 return theLHS.getQName() == theRHS.getQName(); 00116 } 00117 00118 00119 00120 inline bool 00121 operator<( 00122 const ElemAttributeSet& theLHS, 00123 const ElemAttributeSet& theRHS) 00124 { 00125 return theLHS.getQName() < theRHS.getQName(); 00126 } 00127 00128 00129 00130 XALAN_CPP_NAMESPACE_END 00131 00132 00133 00134 #endif // XALAN_ELEMATTRIBUTESET_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 |
|