Class AttributeMapping


  • public abstract class AttributeMapping
    extends java.lang.Object
    The 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 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.
      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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 compare
        sasValue - 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 compare
        v2 - second value to compare
        Returns:
        int