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

public class CategoryMapper extends EntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category>
Mapping methods to map between Category (or a subtype of Category) and EntityDetail. These mapping methods map classifications and attributes that directly map to OMRS.
  • 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
    CategoryMapper(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.category.Category node)
    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.category.Category node)
    Map from a Subject Area OMAS Node to an OMRS EntityDetail
    org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category
    map(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
    Map EntityDetail to Category or a sub type of Category
    protected void
    mapNodeToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category node, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
    Map the supplied Node to omrs InstanceProperties.
    protected boolean
    updateNodeWithClassification(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category category, org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification)
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • CategoryMapper

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

    • map

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

      public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail map(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category 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
    • mapNodeToInstanceProperties

      protected void mapNodeToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category node, 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.category.Category>
      Parameters:
      node - supplied node
      instanceProperties - equivalent instance properties to the Node
    • updateNodeWithClassification

      protected boolean updateNodeWithClassification(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category category, 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.category.Category node)
      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:
      node - 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.category.Category>
      Specified by:
      getTypeName in class EntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category>
      Returns:
      type name