java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.NodeTypeMapper

public class NodeTypeMapper extends Object
Static mapping methods to map between the node type and the Entity Type
  • Constructor Details

    • NodeTypeMapper

      public NodeTypeMapper()
  • Method Details

    • mapNodeTypeToEntityTypeGuid

      public static String mapNodeTypeToEntityTypeGuid(NodeType nodeType)
      Map nodeType to entity type guid. The nodeType is the type of node that is exposed in the nodeType API. The subject Area OMAs needs to convert the node type into a guid of an entity type so it can be used to call omrs. The supplied NodeType is mapped to an EntityType name :
      • The NodeType name can match the EntityType name - e.g. Glossary
      • The NodeType name may need to be renamed to the appropriate entity type e.g. Term
      • The NodeType name may map to en entity type with a classification e.g. Taxonomy
      Parameters:
      nodeType - nodeType this is the type of node that is exposed in the nodetype API
      Returns:
      entity Type guid.
    • mapNodeTypeNameToEntityTypeName

      public static String mapNodeTypeNameToEntityTypeName(String nodeTypeName)
      Map NodeType name to entity type name. The nodeType name is the name of the type of node that is exposed in the nodeType API. The subject Area OMAS needs to convert the node type nameinto a name of an entity type so it can be used to call omrs. The supplied NodeType nameis mapped to an EntityType name :
      • The NodeType name can match the EntityType name - e.g. Glossary
      • The NodeType name may need to be renamed to the appropriate entity type e.g. Term
      • The NodeType name may map to en entity type with a classification e.g. Taxonomy
      Parameters:
      nodeTypeName - nodeType name this is the type of node that is exposed in the nodetype API
      Returns:
      entity Type name.