public class PropertyMappingSet extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PropertyMappingSet.PropertyMapping
Subclass to contain individual mappings.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPLEX_MAPPING_SENTINEL |
| Constructor and Description |
|---|
PropertyMappingSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComplexIgc(String igcPropertyName)
Notes the provided IGC property name requires more than a simple one-to-one mapping.
|
void |
addComplexOmrs(String omrsPropertyName)
Notes the provided OMRS property name requires more than a simple one-to-one mapping.
|
void |
addSimpleMapping(String igcPropertyName,
String omrsPropertyName)
Adds a new mapping to the set of mappings.
|
Set<String> |
getAllMappedIgcProperties()
Returns the set of all IGC properties that are mapped to OMRS properties.
|
Set<String> |
getAllMappedOmrsProperties()
Returns the set of OMRS property names that are mapped to IGC properties.
|
Set<String> |
getComplexMappedIgcProperties()
Returns only the subset of mapped IGC properties that are complex mappings to OMRS properties.
|
Set<String> |
getComplexMappedOmrsProperties()
Returns only the subset of mapped OMRS properties that are complex mappings to IGC properties.
|
String |
getIgcPropertyName(String omrsPropertyName)
Retrieves the IGC property name mapped to the provided OMRS property name.
|
String |
getOmrsPropertyName(String igcPropertyName)
Retrieves the OMRS property name mapped to the provided IGC property name.
|
Set<String> |
getSimpleMappedIgcProperties()
Returns only the subset of mapped IGC properties that are simple one-to-one mappings to OMRS properties.
|
Set<String> |
getSimpleMappedOmrsProperties()
Returns only the subset of mapped OMRS properties that are simple one-to-one mappings to IGC properties.
|
boolean |
isIgcPropertyComplexMapped(String igcPropertyName)
Determines whether the provided IGC property name is complex mapped (true) or not (false).
|
boolean |
isIgcPropertySimpleMapped(String igcPropertyName)
Determines whether the provided IGC property name is simple (one-to-one) mapped (true) or not (false).
|
boolean |
isOmrsPropertyComplexMapped(String omrsPropertyName)
Determines whether the provided OMRS property name is complex mapped (true) or not (false).
|
boolean |
isOmrsPropertySimpleMapped(String omrsPropertyName)
Determines whether the provided OMRS property name is simple (one-to-one) mapped (true) or not (false).
|
public static final String COMPLEX_MAPPING_SENTINEL
public Set<String> getSimpleMappedIgcProperties()
Set<String>public Set<String> getComplexMappedIgcProperties()
Set<String>public Set<String> getAllMappedIgcProperties()
Set<String>public Set<String> getSimpleMappedOmrsProperties()
Set<String>public Set<String> getComplexMappedOmrsProperties()
Set<String>public Set<String> getAllMappedOmrsProperties()
Set<String>public void addSimpleMapping(String igcPropertyName, String omrsPropertyName)
igcPropertyName - the IGC property name (in REST form)omrsPropertyName - the name of the target attribute within the OMRS entitypublic void addComplexIgc(String igcPropertyName)
igcPropertyName - the IGC property name (in REST form)public void addComplexOmrs(String omrsPropertyName)
omrsPropertyName - the OMRS property namepublic String getIgcPropertyName(String omrsPropertyName)
omrsPropertyName - the OMRS property name for which to get the mapped IGC property namepublic String getOmrsPropertyName(String igcPropertyName)
igcPropertyName - the IGC property name for which to get the mapped OMRS property name.public boolean isIgcPropertySimpleMapped(String igcPropertyName)
igcPropertyName - the IGC property name to check for a simple mappingpublic boolean isIgcPropertyComplexMapped(String igcPropertyName)
igcPropertyName - the IGC property name to check for a complex mappingpublic boolean isOmrsPropertySimpleMapped(String omrsPropertyName)
omrsPropertyName - the OMRS property name to check for a simple mappingpublic boolean isOmrsPropertyComplexMapped(String omrsPropertyName)
omrsPropertyName - the OMRS property name to check for a complex mappingCopyright © 2018–2019 ODPi. All rights reserved.