#include <PropertyKindMapper.h>
◆ PropertyKindMapper()
Constructor
- Parameters
-
[in,out] | repository | If non-null, the repository. |
◆ ~PropertyKindMapper()
resqml2_0_1::PropertyKindMapper::~PropertyKindMapper |
( |
| ) |
|
|
default |
◆ addResqmlLocalPropertyKindToEpcDocumentFromApplicationPropertyKindName()
class PropertyKind* resqml2_0_1::PropertyKindMapper::addResqmlLocalPropertyKindToEpcDocumentFromApplicationPropertyKindName |
( |
const std::string & |
applicationPropertyKindName, |
|
|
const std::string & |
application |
|
) |
| |
Add a resqml local property type into the EPC document given in constructor if not already present in EPC document. This addition will also add all needed resqml local property type parent into the EPC document.
◆ getApplicationPropertyKindNameFromResqmlLocalPropertyKindUuid()
std::string resqml2_0_1::PropertyKindMapper::getApplicationPropertyKindNameFromResqmlLocalPropertyKindUuid |
( |
const std::string & |
resqmlLocalPropertyKindUuid, |
|
|
const std::string & |
application |
|
) |
| const |
Gets application property kind name from resqml local property kind uuid.
- Parameters
-
resqmlLocalPropertyKindUuid | The resqml local property kind uuid. |
application | The name of the application. |
- Returns
- empty string if not found.
◆ getApplicationPropertyKindNameFromResqmlStandardPropertyKindName()
std::string resqml2_0_1::PropertyKindMapper::getApplicationPropertyKindNameFromResqmlStandardPropertyKindName |
( |
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind |
resqmlStandardPropertyKindName, |
|
|
const std::string & |
application |
|
) |
| const |
Get the name of a resqml standard property kind into a particular application.
- Parameters
-
resqmlStandardPropertyKindName | The enumerated resqml standard property kind name. |
application | The name of the application. |
- Returns
- The property kind name in the particular application. Or an empty string if not found.
◆ getDescriptionOfResqmlStandardPropertyKindName()
std::string resqml2_0_1::PropertyKindMapper::getDescriptionOfResqmlStandardPropertyKindName |
( |
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind |
resqmlStandardPropertyKindName | ) |
const |
Get the description of a Resqml Standard PropertyKind.
- Parameters
-
resqmlStandardPropertyKindName | Name of the resqml standard property kind. |
- Returns
- The description of resqml standard property kind name.
◆ getPropertyKindParentOfResqmlStandardPropertyKindName()
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind resqml2_0_1::PropertyKindMapper::getPropertyKindParentOfResqmlStandardPropertyKindName |
( |
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind |
resqmlStandardPropertyKindName | ) |
const |
Get the title of the parent of a Resqml Standard PropertyKind.
- Parameters
-
resqmlStandardPropertyKindName | Name of the resqml standard property kind. |
- Returns
- The property kind parent of resqml standard property kind name.
◆ getResqmlLocalPropertyKindUuidFromApplicationPropertyKindName()
std::string resqml2_0_1::PropertyKindMapper::getResqmlLocalPropertyKindUuidFromApplicationPropertyKindName |
( |
const std::string & |
applicationPropertyKindName, |
|
|
const std::string & |
application |
|
) |
| const |
Gets resqml local property kind uuid from application property kind name
- Parameters
-
applicationPropertyKindName | Name of the application property kind. |
application | The application. |
- Returns
- empty string if not found.
◆ getResqmlStandardPropertyKindNameFromApplicationPropertyKindName()
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind resqml2_0_1::PropertyKindMapper::getResqmlStandardPropertyKindNameFromApplicationPropertyKindName |
( |
const std::string & |
applicationPropertyKindName, |
|
|
const std::string & |
application |
|
) |
| const |
Gets resqml standard property kind name from application property kind name.
- Parameters
-
applicationPropertyKindName | Name of the application property kind. |
application | The name of the application. |
- Returns
- The abstract Resqml root property name if no resqml standard property name have been found for this particular application property kind name.
◆ isAbstract()
bool resqml2_0_1::PropertyKindMapper::isAbstract |
( |
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind |
resqmlStandardPropertyKindName | ) |
const |
Check if a resqml property kind is an abstract one or not.
- Parameters
-
resqmlStandardPropertyKindName | The resqml property kind to test. |
- Returns
- True if abstract, false if not.
◆ isChildOf()
bool resqml2_0_1::PropertyKindMapper::isChildOf |
( |
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind |
child, |
|
|
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind |
parent |
|
) |
| const |
Check if a resqml property kind is a child of another one.
- Parameters
-
child | The resqml property kind which is supposed to be the child. |
parent | The resqml property kind which is supposed to be the parent. |
- Returns
- True if child of, false if not.
◆ loadMappingFilesFromDirectory()
std::string resqml2_0_1::PropertyKindMapper::loadMappingFilesFromDirectory |
( |
const std::string & |
directory | ) |
|
Load in maps all the config files present in a particular directory. Config files are all xml files (extension must be .xml). One of this xml file must be named PropertyKindMapping.xml. PropertyKindMapping.xml is the only file to make the mapping with the standard property types. All others xml files must be local property kinds mapping.
- Parameters
-
directory | The directory must not end with any slash. |
- Returns
- The mapping files from directory.
The documentation for this class was generated from the following file: