java.lang.Object
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.AbstractCriterion
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.ServiceCriterion

public class ServiceCriterion extends AbstractCriterion
Represents a criterion for filtering based on a service presence.
See Also:
  • Constructor Details

    • ServiceCriterion

      public ServiceCriterion(com.fasterxml.jackson.databind.JsonNode criterion)
      Constructs ServiceCriterion with the specified JSON criterion.
      Parameters:
      criterion - The JSON criterion for service check.
  • Method Details

    • accept

      public void accept(ICriterionVisitor visitor)
      Description copied from class: AbstractCriterion
      Accepts the given visitor.
      Specified by:
      accept in class AbstractCriterion
      Parameters:
      visitor - The visitor class with its specific business logic.
    • getName

      public String getName()
      Gets the name from the current service criterion, or null if not present.
      Returns:
      The service name from the criterion, or null if not present.