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

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

  • Constructor Details

    • ProjectScopeMapper

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

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

      public org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.ProjectScope getRelationshipInstance()
    • mapRelationshipToInstanceProperties

      public void mapRelationshipToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.ProjectScope projectScope, 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.ProjectScope>
      Parameters:
      projectScope - supplied relationship
      instanceProperties - equivalent instance properties to the relationship
    • mapPrimitiveToRelationship

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