Class TermIsATypeOfRelationshipDeprecatedMapper

java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.TermIsATypeOfRelationshipDeprecatedMapper
All Implemented Interfaces:
IRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated>, Mapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship,org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated>

@Deprecated public class TermIsATypeOfRelationshipDeprecatedMapper extends RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated>
Deprecated.
use IsATypeOfRelationship not TermISATypeOFRelationship
Mapping methods to map between the termISATypeOFRelationship and the equivalent omrs Relationship.
  • Constructor Details

    • TermIsATypeOfRelationshipDeprecatedMapper

      public TermIsATypeOfRelationshipDeprecatedMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
      Deprecated.
  • Method Details

    • mapRelationshipToInstanceProperties

      @Deprecated protected void mapRelationshipToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated isATypeOfDeprecated, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
      Deprecated.
      Map the supplied relationship to omrs InstanceProperties.
      Overrides:
      mapRelationshipToInstanceProperties in class RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated>
      Parameters:
      isATypeOfDeprecated - supplied relationship
      instanceProperties - equivalent instance properties to the relationship
    • mapPrimitiveToRelationship

      @Deprecated protected boolean mapPrimitiveToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated isATypeOfDeprecated, String propertyName, Object value)
      Deprecated.
      Map a primitive omrs property to the termISATypeOFRelationship object.
      Overrides:
      mapPrimitiveToRelationship in class RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated>
      Parameters:
      isATypeOfDeprecated - the omas relationship to be updated
      propertyName - the omrs property name
      value - the omrs primitive property value
      Returns:
      true if the propertyName was recognised and mapped to the relationship, otherwise false
    • mapEnumToRelationship

      @Deprecated protected boolean mapEnumToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated termIsATypeOFRelationship, String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EnumPropertyValue enumPropertyValue)
      Deprecated.
      Description copied from class: RelationshipMapper
      Map an omrs enum property to a Subject Area relationship property. The child class is expected to override this method if the type has enum properties
      Overrides:
      mapEnumToRelationship in class RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated>
      Parameters:
      termIsATypeOFRelationship - the relationship to be updated
      propertyName - the omrs property name
      enumPropertyValue - the omrs enum property value
      Returns:
      true if it was a property we were expecting , otherwise false;
    • getTypeName

      @Deprecated public String getTypeName()
      Deprecated.
      Description copied from class: RelationshipMapper
      get type name
      Specified by:
      getTypeName in interface Mapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship,org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated>
      Specified by:
      getTypeName in class RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated>
      Returns:
      the omrs type name.
    • getRelationshipInstance

      @Deprecated protected org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOfDeprecated getRelationshipInstance()
      Deprecated.