Class PrimaryCategoryRule

java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.beans.PrimaryCategoryRule
All Implemented Interfaces:
Rule

public class PrimaryCategoryRule extends Object implements Rule
  • Constructor Details

    • PrimaryCategoryRule

      public PrimaryCategoryRule()
  • Method Details

    • getEdgeType

      public String getEdgeType()
    • setEdgeType

      public void setEdgeType(String edgeType)
    • getSourceNodeType

      public String getSourceNodeType()
    • setSourceNodeType

      public void setSourceNodeType(String sourceNodeType)
    • getDestinationNodeType

      public String getDestinationNodeType()
    • setDestinationNodeType

      public void setDestinationNodeType(String destinationNodeType)
    • getClassificationProperty

      public String getClassificationProperty()
    • setClassificationProperty

      public void setClassificationProperty(String classificationProperty)
    • apply

      public void apply(Graph graph, String queriedNodeGUID)
      In order to mark the primaryCategory accordingly the graph is iterated and based on the existence of a classification the nodes and edges are altered
      Specified by:
      apply in interface Rule
      Parameters:
      graph - the lineage graph
      queriedNodeGUID - the guid of the queried node used to identify it in the graph
    • toString

      public String toString()
      Overrides:
      toString in class Object