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_ELEMMESSAGE_HEADER_GUARD) 00019 #define XALAN_ELEMMESSAGE_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 "ElemTemplateElement.hpp" 00030 #include "XSLTProcessorException.hpp" 00031 00032 00033 00034 XALAN_CPP_NAMESPACE_BEGIN 00035 00036 00037 00038 class ElemMessage: public ElemTemplateElement 00039 { 00040 public: 00041 00042 /** 00043 * Construct an object corresponding to an "xsl:message" element 00044 * 00045 * @param constructionContext context for construction of object 00046 * @param stylesheetTree stylesheet containing element 00047 * @param name name of element 00048 * @param atts list of attributes for element 00049 * @param lineNumber line number in document 00050 * @param columnNumber column number in document 00051 */ 00052 ElemMessage( 00053 StylesheetConstructionContext& constructionContext, 00054 Stylesheet& stylesheetTree, 00055 const AttributeListType& atts, 00056 XalanFileLoc lineNumber, 00057 XalanFileLoc columnNumber); 00058 00059 // These methods are inherited from ElemTemplateElement ... 00060 00061 virtual const XalanDOMString& 00062 getElementName() const; 00063 00064 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION) 00065 virtual const ElemTemplateElement* 00066 startElement(StylesheetExecutionContext& executionContext) const; 00067 00068 virtual void 00069 endElement(StylesheetExecutionContext& executionContext) const; 00070 #else 00071 virtual void 00072 execute(StylesheetExecutionContext& executionContext) const; 00073 #endif 00074 00075 class ElemMessageTerminateException : public XSLTProcessorException 00076 { 00077 public: 00078 00079 /** 00080 * Construct an ElemMessageTerminateException object 00081 * 00082 * @param theLocator The Locator to use for line number information, etc. 00083 * @param theMessage message to print when exception thrown 00084 */ 00085 ElemMessageTerminateException( 00086 MemoryManager& theManager, 00087 const XalanDOMString& theMessage, 00088 const Locator* theLocator); 00089 00090 virtual 00091 ~ElemMessageTerminateException(); 00092 00093 virtual const XalanDOMChar* 00094 getType() const 00095 { 00096 return m_type; 00097 } 00098 00099 private: 00100 00101 static const XalanDOMChar m_type[]; 00102 }; 00103 00104 private: 00105 00106 bool m_terminate; 00107 }; 00108 00109 00110 00111 XALAN_CPP_NAMESPACE_END 00112 00113 00114 00115 #endif // XALAN_ELEMMESSAGE_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 |
|