Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

XalanQNameByValue.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(XALANQNAMEBYVALUE_HEADER_GUARD_1357924680)
00017 #define XALANQNAMEBYVALUE_HEADER_GUARD_1357924680
00018 
00019 
00020 
00021 // Base header file.  Must be first.
00022 #include <xalanc/XPath/XPathDefinitions.hpp>
00023 
00024 
00025 
00026 // Base class header file...
00027 #include <xalanc/XPath/XalanQName.hpp>
00028 
00029 
00030 
00031 XALAN_DECLARE_XERCES_CLASS(Locator)
00032 
00033 
00034 
00035 XALAN_CPP_NAMESPACE_BEGIN
00036 
00037 
00038 
00039 class DOMSupport;
00040 
00041 
00042 
00043 class XALAN_XPATH_EXPORT XalanQNameByValue : public XalanQName
00044 {
00045 public:
00046 
00047     typedef XERCES_CPP_NAMESPACE_QUALIFIER Locator  LocatorType;
00048 
00052     explicit
00053     XalanQNameByValue();
00054 
00060     XalanQNameByValue(const XalanQNameByValue&  theSource);
00061 
00067     explicit
00068     XalanQNameByValue(const XalanQName& theSource);
00069 
00076     XalanQNameByValue(
00077             const XalanDOMString&   theNamespace,
00078             const XalanDOMString&   theLocalPart);
00079 
00089     XalanQNameByValue(
00090             const XalanDOMString&       qname,
00091             const NamespacesStackType&  namespaces,
00092             const LocatorType*          locator = 0,
00093             bool                        fUseDefault = false);
00094 
00104     XalanQNameByValue(
00105             const XalanDOMChar*         qname,
00106             const NamespacesStackType&  namespaces,
00107             const LocatorType*          locator = 0,
00108             bool                        fUseDefault = false);
00109 
00120     XalanQNameByValue(
00121             const XalanDOMString&   qname,
00122             const XalanElement*     namespaceContext,
00123             const XPathEnvSupport&  envSupport,
00124             const DOMSupport&       domSupport,
00125             const LocatorType*      locator = 0);
00126 
00135     XalanQNameByValue(
00136             const XalanDOMString&   qname,
00137             const PrefixResolver*   theResolver = 0,
00138             const LocatorType*      locator = 0);
00139 
00140     virtual
00141     ~XalanQNameByValue();
00142 
00148     virtual const XalanDOMString&
00149     getLocalPart() const;
00150 
00156     void
00157     setLocalPart(const XalanDOMString&  theLocalPart)
00158     {
00159         m_localpart = theLocalPart;
00160     }
00161 
00167     virtual const XalanDOMString&
00168     getNamespace() const;
00169 
00175     void
00176     setNamespace(const XalanDOMString&  theNamespace)
00177     {
00178         m_namespace = theNamespace;
00179     }
00180 
00191     void
00192     set(Xalan-C++ API Documentation

Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

XalanQNameByReference.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(XALANQNAMEBYREFERENCE_HEADER_GUARD_1357924680)
00017 #define XALANQNAMEBYREFERENCE_HEADER_GUARD_1357924680
00018 
00019 
00020 
00021 // Base header file.  Must be first.
00022 #include <xalanc/XPath/XPathDefinitions.hpp>
00023 
00024 
00025 
00026 // Base class header file...
00027 #include <xalanc/XPath/XalanQName.hpp>
00028 
00029 
00030 
00031 XALAN_CPP_NAMESPACE_BEGIN
00032 
00033 
00034 
00035 class XALAN_XPATH_EXPORT XalanQNameByReference : public XalanQName
00036 {
00037 public:
00038 
00042     explicit
00043     XalanQNameByReference();
00044 
00053     XalanQNameByReference(
00054             const XalanDOMString&   theNamespace,
00055             const XalanDOMString&   theLocalPart);
00056 
00064     XalanQNameByReference(const XalanDOMString&     theLocalPart);
00065 
00072     XalanQNameByReference(const XalanQName&     theQName);
00073 
00074     virtual
00075     ~XalanQNameByReference();
00076 
00082     virtual const XalanDOMString&
00083     getLocalPart() const;
00084 
00090     void
00091     setLocalPart(const XalanDOMString&  theLocalPart)
00092     {
00093         m_localpart = &theLocalPart;
00094     }
00095 
00101     virtual const XalanDOMString&
00102     getNamespace() const;
00103 
00109     void
00110     setNamespace(const XalanDOMString&  theNamespace)
00111     {
00112         m_namespace = &theNamespace;
00113     }
00114 
00118     void
00119     clear()
00120     {
00121         m_namespace = &s_emptyString;
00122         m_localpart = &s_emptyString;