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$
*/
#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
XSAnnotationList
RefVectorOf< XSAnnotation > XSAnnotationList
Definition XSConstants.hpp:47
StringList
RefArrayVectorOf< XMLCh > StringList
Definition XSConstants.hpp:54
XSObject.hpp
XSSimpleTypeDefinition.hpp
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
MemoryManager
Configurable memory manager.
Definition MemoryManager.hpp:40
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
XSAnnotation
Definition XSAnnotation.hpp:42
XSModel
Definition XSModel.hpp:60
XSMultiValueFacet
Definition XSMultiValueFacet.hpp:41
XSMultiValueFacet::fFacetKind
XSSimpleTypeDefinition::FACET fFacetKind
Definition XSMultiValueFacet.hpp:122
XSMultiValueFacet::fLexicalValues
StringList * fLexicalValues
Definition XSMultiValueFacet.hpp:124
XSMultiValueFacet::getAnnotations
XSAnnotationList * getAnnotations()
Definition XSMultiValueFacet.hpp:144
XSMultiValueFacet::XSMultiValueFacet
XSMultiValueFacet(XSSimpleTypeDefinition::FACET facetKind, StringList *lexicalValues, bool isFixed, XSAnnotation *const headAnnot, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
The default constructor.
XSMultiValueFacet::fXSAnnotationList
XSAnnotationList * fXSAnnotationList
Definition XSMultiValueFacet.hpp:125
XSMultiValueFacet::getFacetKind
XSSimpleTypeDefinition::FACET getFacetKind() const
Definition XSMultiValueFacet.hpp:129
XSMultiValueFacet::~XSMultiValueFacet
~XSMultiValueFacet()
XSMultiValueFacet::getLexicalFacetValues
StringList * getLexicalFacetValues()
Definition XSMultiValueFacet.hpp:139
XSMultiValueFacet::fIsFixed
bool fIsFixed
Definition XSMultiValueFacet.hpp:123
XSMultiValueFacet::isFixed
bool isFixed() const
Check whether a facet value is fixed.
Definition XSMultiValueFacet.hpp:134
XSObject
Definition XSObject.hpp:43
XSSimpleTypeDefinition::FACET
FACET
Definition XSSimpleTypeDefinition.hpp:68