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

public class TermHasARelationshipMapper extends RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.HasA>
Mapping methods to map between the termHASARelationship and the equivalent omrs Relationship.
  • Field Details

  • Constructor Details

    • TermHasARelationshipMapper

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

    • mapRelationshipToInstanceProperties

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

      protected boolean mapPrimitiveToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.HasA termHasARelationship, String propertyName, Object value)
      Map a primitive omrs property to the termHASARelationship object.
      Overrides:
      mapPrimitiveToRelationship in class RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.HasA>
      Parameters:
      termHasARelationship - 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

      protected boolean mapEnumToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.HasA termHasARelationship, String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EnumPropertyValue enumPropertyValue)
      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.HasA>
      Parameters:
      termHasARelationship - 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

      public String getTypeName()
      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.HasA>
      Specified by:
      getTypeName in class RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.HasA>
      Returns:
      the omrs type name.
    • getRelationshipInstance

      protected org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.HasA getRelationshipInstance()