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_ELEMTEXTLITERAL_HEADER_GUARD) 00019 #define XALAN_ELEMTEXTLITERAL_HEADER_GUARD 00020 00021 00022 // Base include file. Must be first. 00023 #include "XSLTDefinitions.hpp" 00024 00025 00026 00027 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00028 00029 00030 00031 // Base class header file. 00032 #include "ElemTemplateElement.hpp" 00033 00034 00035 00036 XALAN_CPP_NAMESPACE_BEGIN 00037 00038 00039 00040 class ElemTextLiteral : public ElemTemplateElement 00041 { 00042 public: 00043 00044 /** 00045 * Construct an object corresponding to literal text element 00046 * 00047 * @param constructionContext context for construction of object 00048 * @param stylesheetTree stylesheet containing element 00049 * @param lineNumber line number in document 00050 * @param columnNumber column number in document 00051 * @param ch pointer to character string for element 00052 * @param start starting offset of element 00053 * @param length number of characters in element 00054 * @param fPreserveSpace true is space should be preserved 00055 * @param fDisableOutputEscaping true if output escaping should be disabled 00056 */ 00057 ElemTextLiteral( 00058 StylesheetConstructionContext& constructionContext, 00059 Stylesheet& stylesheetTree, 00060 XalanFileLoc lineNumber, 00061 XalanFileLoc columnNumber, 00062 const XalanDOMChar* ch, 00063 XalanDOMString::size_type start, 00064 XalanDOMString::size_type length, 00065 bool fPreserveSpace, 00066 bool fDisableOutputEscaping); 00067 00068 virtual 00069 ~ElemTextLiteral(); 00070 00071 /** 00072 * Determine if whitespace should be preserved within the element 00073 * 00074 * @return true if whitespace should be preserved 00075 */ 00076 bool 00077 isPreserveSpace() const 00078 { 00079 return preserveSpace(); 00080 } 00081 00082 const XalanDOMChar* 00083 getText() const 00084 { 00085 return m_ch; 00086 } 00087 00088 XalanDOMString::size_type 00089 getLength() const 00090 { 00091 return m_length; 00092 } 00093 00094 virtual bool 00095 isWhitespace() const; 00096 00097 // These methods are inherited from ElemTemplateElement ... 00098 00099 virtual const XalanDOMString& 00100 getElementName() const; 00101 00102 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION) 00103 virtual const ElemTemplateElement* 00104 startElement(StylesheetExecutionContext& executionContext) const; 00105 #else 00106 virtual void 00107 execute(StylesheetExecutionContext& executionContext) const; 00108 #endif 00109 00110 private: 00111 00112 // not implemented 00113 ElemTextLiteral(const ElemTextLiteral&); 00114 00115 ElemTextLiteral& 00116 operator=(const ElemTextLiteral&); 00117 00118 const bool m_isWhitespace; 00119 00120 const XalanDOMChar* const m_ch; 00121 const XalanDOMString::size_type m_length; 00122 }; 00123 00124 00125 00126 XALAN_CPP_NAMESPACE_END 00127 00128 00129 00130 #endif // XALAN_ELEMTEXTLITERAL_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 |
|