Class Indication
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.indication.Indication
- All Implemented Interfaces:
Describable<Indication>
,Serializable
- Direct Known Subclasses:
BuildLogIndication
Indication that can match a search string for a specific reader.
- Author:
- Tomas Westling <thomas.westling@sonyericsson.com>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The descriptor for this indicator. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Pattern
Getter for the pattern to match.abstract FailureReader
Gets a FailureReader used for finding this indication.toString()
validate()
Checks if the indication is correctly configured.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
Indication
- Parameters:
pattern
- the String value.
-
-
Method Details
-
getUserProvidedExpression
- Returns:
- The user-provided regular expression.
-
getReader
Gets a FailureReader used for finding this indication.- Returns:
- a FailureReader.
-
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
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
-