[358] | 1 | /*
|
---|
| 2 | * Copyright 2003,2004 The Apache Software Foundation.
|
---|
| 3 | *
|
---|
| 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
| 5 | * you may not use this file except in compliance with the License.
|
---|
| 6 | * You may obtain a copy of the License at
|
---|
| 7 | *
|
---|
| 8 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 9 | *
|
---|
| 10 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
| 13 | * See the License for the specific language governing permissions and
|
---|
| 14 | * limitations under the License.
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | #if !defined(DOMTYPEINFO_HPP)
|
---|
| 18 | #define DOMTYPEINFO_HPP
|
---|
| 19 |
|
---|
| 20 | //------------------------------------------------------------------------------------
|
---|
| 21 | // Includes
|
---|
| 22 | //------------------------------------------------------------------------------------
|
---|
| 23 | #include <xercesc/util/XMLString.hpp>
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | XERCES_CPP_NAMESPACE_BEGIN
|
---|
| 27 |
|
---|
| 28 | /**
|
---|
| 29 | * The <code>DOMTypeInfo</code> interface represent a type used by
|
---|
| 30 | * <code>DOMElement</code> or <code>DOMAttr</code> nodes, specified in the
|
---|
| 31 | * schemas associated with the document. The type is a pair of a namespace URI
|
---|
| 32 | * and name properties, and depends on the document's schema.
|
---|
| 33 | */
|
---|
| 34 | class CDOM_EXPORT DOMTypeInfo
|
---|
| 35 | {
|
---|
| 36 | protected:
|
---|
| 37 | // -----------------------------------------------------------------------
|
---|
| 38 | // Hidden constructors
|
---|
| 39 | // -----------------------------------------------------------------------
|
---|
| 40 | /** @name Hidden constructors */
|
---|
| 41 | //@{
|
---|
| 42 | DOMTypeInfo() {};
|
---|
| 43 | //@}
|
---|
| 44 |
|
---|
| 45 | private:
|
---|
| 46 | // -----------------------------------------------------------------------
|
---|
| 47 | // Unimplemented constructors and operators
|
---|
| 48 | // -----------------------------------------------------------------------
|
---|
| 49 | /** @name Unimplemented constructors and operators */
|
---|
| 50 | //@{
|
---|
| 51 | DOMTypeInfo(const DOMTypeInfo &);
|
---|
| 52 | DOMTypeInfo & operator = (const DOMTypeInfo &);
|
---|
| 53 | //@}
|
---|
| 54 |
|
---|
| 55 | public:
|
---|
| 56 |
|
---|
| 57 | // -----------------------------------------------------------------------
|
---|
| 58 | // All constructors are hidden, just the destructor is available
|
---|
| 59 | // -----------------------------------------------------------------------
|
---|
| 60 | /** @name Destructor */
|
---|
| 61 | //@{
|
---|
| 62 | /**
|
---|
| 63 | * Destructor
|
---|
| 64 | *
|
---|
| 65 | */
|
---|
| 66 | virtual ~DOMTypeInfo() {};
|
---|
| 67 | //@}
|
---|
| 68 |
|
---|
| 69 | //@{
|
---|
| 70 | // -----------------------------------------------------------------------
|
---|
| 71 | // Getter methods
|
---|
| 72 | // -----------------------------------------------------------------------
|
---|
| 73 | /**
|
---|
| 74 | * Returns The name of a type declared for the associated <code>DOMElement</code>
|
---|
| 75 | * or <code>DOMAttr</code>, or null if undeclared.
|
---|
| 76 | *
|
---|
| 77 | * <p><b>"Experimental - subject to change"</b></p>
|
---|
| 78 | *
|
---|
| 79 | * @return The name of a type declared for the associated <code>DOMElement</code>
|
---|
| 80 | * or <code>DOMAttribute</code>, or null if undeclared.
|
---|
| 81 | * @since DOM level 3
|
---|
| 82 | */
|
---|
| 83 | virtual const XMLCh* getName() const = 0;
|
---|
| 84 |
|
---|
| 85 | /**
|
---|
| 86 | * The namespace of the type declared for the associated <code>DOMElement</code>
|
---|
| 87 | * or <code>DOMAttr</code> or null if the <code>DOMElement</code> does not have
|
---|
| 88 | * declaration or if no namespace information is available.
|
---|
| 89 | *
|
---|
| 90 | * <p><b>"Experimental - subject to change"</b></p>
|
---|
| 91 | *
|
---|
| 92 | * @return The namespace of the type declared for the associated <code>DOMElement</code>
|
---|
| 93 | * or <code>DOMAttr</code> or null if the <code>DOMElement</code> does not have
|
---|
| 94 | * declaration or if no namespace information is available.
|
---|
| 95 | * @since DOM level 3
|
---|
| 96 | */
|
---|
| 97 | virtual const XMLCh* getNamespace() const = 0;
|
---|
| 98 | //@}
|
---|
| 99 | };
|
---|
| 100 |
|
---|
| 101 | XERCES_CPP_NAMESPACE_END
|
---|
| 102 |
|
---|
| 103 | #endif
|
---|
| 104 |
|
---|
| 105 | /**
|
---|
| 106 | * End of file DOMTypeInfo.hpp
|
---|
| 107 | */
|
---|