java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.indication.Indication
All Implemented Interfaces:
Describable<Indication>, Serializable
Direct Known Subclasses:
BuildLogIndication

public abstract class Indication extends Object implements Describable<Indication>, Serializable
Indication that can match a search string for a specific reader.
Author:
Tomas Westling <thomas.westling@sonyericsson.com>
See Also:
  • Constructor Details

    • Indication

      public Indication(String pattern)
      Parameters:
      pattern - the String value.
  • Method Details

    • getUserProvidedExpression

      public String getUserProvidedExpression()
      Returns:
      The user-provided regular expression.
    • getReader

      public abstract FailureReader getReader()
      Gets a FailureReader used for finding this indication.
      Returns:
      a FailureReader.
    • validate

      public FormValidation validate()
      Checks if the indication is correctly configured. Default implementation checks for pattern compilation errors. Override this method to provide more validation.
      Returns:
      FormValidation.ok() if everything is well.
      See Also:
    • getPattern

      public abstract Pattern getPattern()
      Getter for the pattern to match. The compiled pattern may not be identical to the pattern provided by the user.
      Returns:
      the pattern to match.
    • toString

      public String toString()
      Overrides:
      toString in class Object