java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper<Category>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.CategoryMapper
All Implemented Interfaces:
INodeMapper<Category>, Mapper<EntityDetail,Category>

public class CategoryMapper extends EntityDetailMapper<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 Details

  • Constructor Details

  • Method Details

    • map

      public Category map(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

      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:
      InvalidParameterException
    • mapNodeToInstanceProperties

      protected void mapNodeToInstanceProperties(Category node, InstanceProperties instanceProperties)
      Map the supplied Node to omrs InstanceProperties.
      Overrides:
      mapNodeToInstanceProperties in class EntityDetailMapper<Category>
      Parameters:
      node - supplied node
      instanceProperties - equivalent instance properties to the Node
    • updateNodeWithClassification

      protected boolean updateNodeWithClassification(Category category, Classification omasClassification)
    • getInlinedClassifications

      protected List<Classification> getInlinedClassifications(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<EntityDetail,Category>
      Specified by:
      getTypeName in class EntityDetailMapper<Category>
      Returns:
      type name