LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
documentProperty.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
2//
3// SPDX-License-Identifier: MIT
4
5/************************************************************************
6 * @file abstractDocumentXMLParser.h
7 * @author Olivier Mesnard
8 * @date 16 Sept 2005
9 *
10 * @brief
11 *
12 *
13 ***********************************************************************/
14#ifndef XMLREADERDOCUMENTPROPERTYTYPE_H
15#define XMLREADERDOCUMENTPROPERTYTYPE_H
16
19
20namespace Lima {
21namespace DocumentsReader {
22
32#define MAX_STORAGE_TYPE int(STORAGE_WEIGHTED_PROPERTY)+1
33
34static const QString storageTypeTag[MAX_STORAGE_TYPE]={
35 "none",
36 "string",
37 "integer",
38 "date",
39 "date_interval",
40 "weighted_property"
41};
42
50#define MAX_CARDINALITY_TYPE CARDINALITY_MULTIPLE+1
51
52static const QString cardinalityTypeTag[MAX_STORAGE_TYPE]={
53 "none",
54 "optional",
55 "mandatory",
56 "multi-valued"
57};
58
59#define STANDARDDOCUMENTPROPERTYTYPE_CLASSID "StandardDocumentPropertyType"
60#define EXTENSIONDOCUMENTPROPERTYTYPE_CLASSID "ExtensionDocumentPropertyType"
61class DocumentPropertyTypePrivate;
63public:
66 DocumentPropertyType& operator=(const DocumentPropertyType& dpt);
67 virtual ~DocumentPropertyType();
69 Manager* manager) override;
70
71 const StorageType& getStorageType() const;
72 const CardinalityType& getValueCardinality() const;
73 const long int& getStorageSize() const;
74 const std::deque< QString >& getElementTagNames() const;
75 const std::deque< std::pair<QString,QString> > & getAttributeTagNames() const;
76 bool isValueInElement( const QString& elementName ) const;
77
78 StorageType& getStorageType();
79 CardinalityType& getValueCardinality();
80 long int& getStorageSize();
81
82 bool operator<(const DocumentPropertyType& dpt) const;
83
84protected:
86};
87
94
101
102} // namespace DocumentsReader
103} // namespace Lima
104
105#endif
bool isValueInElement(const QString &elementName) const
Manage initialization of InitializableObjects using configuration module and parameters.
#define MAX_STORAGE_TYPE
#define DOCUMENTSREADER_EXPORT
static const QString cardinalityTypeTag[MAX_STORAGE_TYPE]
StorageType
a type meaning the storage type of an attribute
static const QString storageTypeTag[MAX_STORAGE_TYPE]
CardinalityType
a type meaning the cardinality of an attribute
NAUTITIA.
static bool operator<(const QStringView &entityStr, const TextHtmlEntity &entity)