XSMultiValueFacet.hpp
Go to the documentation of this file.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: XSMultiValueFacet.hpp 527149 2007-04-10 14:56:39Z amassari $
*/
#if !defined(XERCESC_INCLUDE_GUARD_XSMULTIVALUEFACET_HPP)
#define XERCESC_INCLUDE_GUARD_XSMULTIVALUEFACET_HPP
#include <xercesc/framework/psvi/XSObject.hpp>
#include <xercesc/framework/psvi/XSSimpleTypeDefinition.hpp>
XERCES_CPP_NAMESPACE_BEGIN
// forward declarations
class XSAnnotation;
class XMLPARSER_EXPORT XSMultiValueFacet : public XSObject
{
public:
// Constructors and Destructor
// -----------------------------------------------------------------------
XSMultiValueFacet
(
XSSimpleTypeDefinition::FACET facetKind
, StringList* lexicalValues
, bool isFixed
, XSAnnotation* const headAnnot
, XSModel* const xsModel
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
~XSMultiValueFacet();
//---------------------
XSSimpleTypeDefinition::FACET getFacetKind() const;
StringList *getLexicalFacetValues();
bool isFixed() const;
XSAnnotationList *getAnnotations();
//----------------------------------
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
XSMultiValueFacet(const XSMultiValueFacet&);
XSMultiValueFacet & operator=(const XSMultiValueFacet &);
protected:
// -----------------------------------------------------------------------
// data members
// -----------------------------------------------------------------------
XSSimpleTypeDefinition::FACET fFacetKind;
bool fIsFixed;
StringList* fLexicalValues; // not owned by this class
XSAnnotationList* fXSAnnotationList;
};
inline XSSimpleTypeDefinition::FACET XSMultiValueFacet::getFacetKind() const
{
return fFacetKind;
}
inline bool XSMultiValueFacet::isFixed() const
{
return fIsFixed;
}
inline StringList *XSMultiValueFacet::getLexicalFacetValues()
{
return fLexicalValues;
}
inline XSAnnotationList *XSMultiValueFacet::getAnnotations()
{
return fXSAnnotationList;
}
XERCES_CPP_NAMESPACE_END
#endif
XSMultiValueFacet::getLexicalFacetValues
StringList * getLexicalFacetValues()
Definition: XSMultiValueFacet.hpp:139
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XSMultiValueFacet::getAnnotations
XSAnnotationList * getAnnotations()
Definition: XSMultiValueFacet.hpp:144
XSMultiValueFacet
Definition: XSMultiValueFacet.hpp:40
XSObject
Definition: XSObject.hpp:42
XSMultiValueFacet::fIsFixed
bool fIsFixed
Definition: XSMultiValueFacet.hpp:123
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XSModel
Definition: XSModel.hpp:59
XSObject.hpp
XSSimpleTypeDefinition::FACET
FACET
Definition: XSSimpleTypeDefinition.hpp:68
XSMultiValueFacet::fXSAnnotationList
XSAnnotationList * fXSAnnotationList
Definition: XSMultiValueFacet.hpp:125
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
XSAnnotation
Definition: XSAnnotation.hpp:41
XSSimpleTypeDefinition.hpp
StringList
RefArrayVectorOf< XMLCh > StringList
Definition: XSConstants.hpp:54
XSMultiValueFacet::fLexicalValues
StringList * fLexicalValues
Definition: XSMultiValueFacet.hpp:124
XSAnnotationList
RefVectorOf< XSAnnotation > XSAnnotationList
Definition: XSConstants.hpp:41
MemoryManager
Configurable memory manager.
Definition: MemoryManager.hpp:39
XSMultiValueFacet::getFacetKind
XSSimpleTypeDefinition::FACET getFacetKind() const
Definition: XSMultiValueFacet.hpp:129
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
XSMultiValueFacet::fFacetKind
XSSimpleTypeDefinition::FACET fFacetKind
Definition: XSMultiValueFacet.hpp:122
XSMultiValueFacet::isFixed
bool isFixed() const
Check whether a facet value is fixed.
Definition: XSMultiValueFacet.hpp:134