java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.TermMapper
All Implemented Interfaces:
INodeMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>, Mapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail,org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>

public class TermMapper extends EntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>
Static mapping methods to map between the Term and the generated OMRSBean for GlossaryTerm.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper

    genericHandler, repositoryHelper
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected List<org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification>
    getInlinedClassifications(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term)
    A Classification either exists in the classifications associated with a node or as an inlined attribute (these are properties / attributes of a node that correspond to OMRS Classifications)
    Get the type name
    org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail
    map(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term node)
    Map from a Subject Area OMAS Node to an OMRS EntityDetail
    org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term
    map(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
    Map (convert) EntityDetail to Term or a sub type of Term
    protected void
    mapNodeToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
    Map the supplied Node to omrs InstanceProperties.
    protected boolean
    mapPrimitiveToNode(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, String propertyName, Object value)
    Map a primitive omrs property to the term object.
    protected boolean
    updateNodeWithClassification(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification)
     

    Methods inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper

    getTypeDefGuid, mapEntityDetailToNode, mapEnumToNode, mapMapToNode, populateAdditionalProperties, removePropertyByNameFromInstanceProperties, toEntityDetail

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • TermMapper

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

    • map

      public org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term map(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
      Map (convert) EntityDetail to Term or a sub type of Term
      Parameters:
      entityDetail - the supplied EntityDetail
      Returns:
      Term the equivalent Term to the supplied entityDetail.
    • map

      public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail map(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term node) throws org.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterException
      Description copied from interface: INodeMapper
      Map from a Subject Area OMAS Node to an OMRS EntityDetail
      Parameters:
      node - a Subject Area OMAS Node
      Returns:
      an OMRS EntityDetail
      Throws:
      org.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterException
    • mapPrimitiveToNode

      protected boolean mapPrimitiveToNode(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, String propertyName, Object value)
      Map a primitive omrs property to the term object.
      Overrides:
      mapPrimitiveToNode in class EntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>
      Parameters:
      term - the term 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 Node, otherwise false
    • mapNodeToInstanceProperties

      protected void mapNodeToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
      Map the supplied Node to omrs InstanceProperties.
      Overrides:
      mapNodeToInstanceProperties in class EntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>
      Parameters:
      term - supplied node
      instanceProperties - equivalent instance properties to the Node
    • updateNodeWithClassification

      protected boolean updateNodeWithClassification(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification)
    • getInlinedClassifications

      protected List<org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification> getInlinedClassifications(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term)
      A Classification either exists in the classifications associated with a node or as an inlined attribute (these are properties / attributes of a node that correspond to OMRS Classifications)
      Parameters:
      term - supplied term
      Returns:
      inlined classifications.
    • getTypeName

      public String getTypeName()
      Description copied from interface: Mapper
      Get the type name
      Specified by:
      getTypeName in interface Mapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail,org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>
      Specified by:
      getTypeName in class EntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>
      Returns:
      type name