Class AttributeMapping
- java.lang.Object
-
- org.odpi.openmetadata.connector.sas.repository.connector.mapping.AttributeMapping
-
public abstract class AttributeMapping extends java.lang.ObjectThe base class for all mappings between OMRS AttributeTypeDefs and Sas properties.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcompareInstanceProperty(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue v1, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue v2)Comparator input for sorting based on an InstancePropertyValue.static booleanvaluesMatch(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue omrsValue, java.lang.Object sasValue)Indicates whether the provided OMRS and Sas values match (true) or not (false).
-
-
-
Method Detail
-
valuesMatch
public static boolean valuesMatch(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue omrsValue, java.lang.Object sasValue)Indicates whether the provided OMRS and Sas values match (true) or not (false).- Parameters:
omrsValue- the OMRS property value to comparesasValue- the Sas value to compare- Returns:
- boolean
-
compareInstanceProperty
public static int compareInstanceProperty(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue v1, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue v2)Comparator input for sorting based on an InstancePropertyValue. Note that this will assume that both v1 and v2 are the same type of property value (eg. both same type of primitive)- Parameters:
v1- first value to comparev2- second value to compare- Returns:
- int
-
-