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

public class IsATypeOfMapper extends RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOf>
Mapping methods to map between the isATypeOf and the equivalent omrs Relationship.
  • Field Summary

    Fields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper

    genericHandler, repositoryHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
    IsATypeOfMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOf
     
    get type name
    protected boolean
    mapEnumToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOf isATypeOf, String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EnumPropertyValue enumPropertyValue)
    Map an omrs enum property to a Subject Area relationship property.
    protected boolean
    mapPrimitiveToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOf isATypeOf, String propertyName, Object value)
    Map a primitive omrs property to the IsATypeOf object.
    protected void
    mapRelationshipToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOf isATypeOf, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
    Map the supplied relationship to omrs InstanceProperties.

    Methods inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper

    getTypeDefGuid, map, map, mapInstancePropertiesToRelationship, mapMapToRelationship

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IsATypeOfMapper

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

    • mapRelationshipToInstanceProperties

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

      protected boolean mapPrimitiveToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOf isATypeOf, String propertyName, Object value)
      Map a primitive omrs property to the IsATypeOf object.
      Overrides:
      mapPrimitiveToRelationship in class RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOf>
      Parameters:
      isATypeOf - 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.IsATypeOf isATypeOf, 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.IsATypeOf>
      Parameters:
      isATypeOf - 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.IsATypeOf>
      Specified by:
      getTypeName in class RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.IsATypeOf>
      Returns:
      the omrs type name.
    • getRelationshipInstance

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