public abstract class AttributeMapping extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeMapping.IGCPropertyType |
| Constructor and Description |
|---|
AttributeMapping(AttributeMapping.IGCPropertyType igcPropertyType,
String omrsAttributeTypeDefName) |
AttributeMapping(String igcAssetType,
String igcPropertyName,
AttributeMapping.IGCPropertyType igcPropertyType,
String omrsAttributeTypeDefName) |
| Modifier and Type | Method and Description |
|---|---|
static InstanceProperties |
addPrimitivePropertyToInstance(OMRSRepositoryHelper omrsRepositoryHelper,
String sourceName,
InstanceProperties properties,
TypeDefAttribute property,
Object propertyValue,
String methodName)
Add the supplied property to an instance properties object.
|
String |
getIgcAssetType()
Retrieve the IGC asset type to which this attribute mapping applies.
|
AttributeMapping.IGCPropertyType |
getIgcPropertyType()
Retrieve the IGC property type for this attribute mapping.
|
String |
getOmrsAttributeTypeDefName()
Retrieve the OMRS AttributeTypeDef name for this attribute mapping applies.
|
boolean |
isForGeneralAttribute()
Indicates whether this mapping is for a general attribute (true) or a specific attribute (false).
|
boolean |
isForSpecificAttribute()
Indicates whether this mapping is for a specific attribute (true) or a general attribute (false).
|
boolean |
matchesProperty(String igcAssetType,
String igcPropertyName)
Indicates whether this attribute mapping can be applied to the provided IGC property (for the provided IGC asset
type) (true) or not (false).
|
public AttributeMapping(AttributeMapping.IGCPropertyType igcPropertyType, String omrsAttributeTypeDefName)
public AttributeMapping(String igcAssetType, String igcPropertyName, AttributeMapping.IGCPropertyType igcPropertyType, String omrsAttributeTypeDefName)
public boolean isForGeneralAttribute()
public boolean isForSpecificAttribute()
public String getIgcAssetType()
isForSpecificAttribute()public String getOmrsAttributeTypeDefName()
public AttributeMapping.IGCPropertyType getIgcPropertyType()
public boolean matchesProperty(String igcAssetType, String igcPropertyName)
igcAssetType - name of the IGC asset typeigcPropertyName - name of the IGC property on that asset typepublic static InstanceProperties addPrimitivePropertyToInstance(OMRSRepositoryHelper omrsRepositoryHelper, String sourceName, InstanceProperties properties, TypeDefAttribute property, Object propertyValue, String methodName)
omrsRepositoryHelper - the OMRS repository helpersourceName - name of callerproperties - properties object to add property to may be null.property - the propertypropertyValue - value of propertymethodName - calling method nameCopyright © 2018–2019 ODPi. All rights reserved.