## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.10

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members

# KeyDeclaration.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Copyright 1999-2004 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License");
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *     http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016 #if !defined(XALAN_KEYDECLARATION_HEADER_GUARD)
    00017 #define XALAN_KEYDECLARATION_HEADER_GUARD
    00018
    00019
    00020
    00021 // Base include file.  Must be first.
    00022 #include "XSLTDefinitions.hpp"
    00023
    00024
    00025
    00026 XALAN_CPP_NAMESPACE_BEGIN
    00027
    00028
    00029
    00030 #include <xalanc/PlatformSupport/XalanLocator.hpp>
    00031
    00032
    00033
    00034 class XPath;
    00035
    00036
    00037
    00041 class KeyDeclaration
    00042 {
    00043 public:
    00044
    00052     KeyDeclaration(
    00053             const XalanQName&           qname,
    00054             const XPath&                matchPattern,
    00055             const XPath&                use,
    00056             const XalanDOMString&       uri,
    00057             XalanLocator::size_type     lineNumber,
    00058             XalanLocator::size_type     columnNumber) :
    00059         m_qname(&qname),
    00060         m_match(&matchPattern),
    00061         m_use(&use),
    00062         m_uri(&uri),
    00063         m_lineNumber(lineNumber),
    00064         m_columnNumber(columnNumber)
    00065     {
    00066     }
    00067
    00068     explicit
    00069     KeyDeclaration() :
    00070         m_qname(0),
    00071         m_match(0),
    00072         m_use(0),
    00073         m_uri(0),
    00074         m_lineNumber(0),
    00075         m_columnNumber(0)
    00076     {
    00077     }
    00078
    00079     KeyDeclaration(const KeyDeclaration&    theSource) :
    00080         m_qname(theSource.m_qname),
    00081         m_match(theSource.m_match),
    00082         m_use(theSource.m_use)
    00083     {
    00084     }
    00085
    00086     ~KeyDeclaration()
    00087     {
    00088     }
    00089
    00095     const XalanQName*
    00096     getQName() const
    00097     {
    00098         return m_qname;
    00099     }
    00100
    00106     const XPath*
    00107     getUse() const
    00108     {
    00109         return m_use;
    00110     }
    00111
    00117     const XPath*
    00118     getMatchPattern() const
    00119     {
    00120         return m_match;
    00121     }
    00122
    00128     const XalanDOMString*
    00129     getURI() const
    00130     {
    00131         return m_uri;
    00132     }
    00133
    00139     XalanLocator::size_type
    00140     getLineNumber() const
    00141     {
    00142         return m_lineNumber;
    00143     }
    00144
    00150     XalanLocator::size_type
    00151     getColumnNumber() const
    00152     {
    00153         return m_columnNumber;
    00154     }
    00155
    00156 private:
    00157
    00158     const XalanQName*           m_qname;
    00159
    00160     const XPath*                m_match;
    00161
    00162     const XPath*                m_use;
    00163
    00164     const XalanDOMString*       m_uri;
    00165
    00166     XalanLocator::size_type     m_lineNumber;
    00167
    00168     XalanLocator::size_type     m_columnNumber;
    00169 };
    00170
    00171
    00172
    00173 XALAN_CPP_NAMESPACE_END
    00174
    00175
    00176
    00177 #endif  // XALAN_KEYDECLARATION_HEADER_GUARD

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.10 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.