Class Indication
- 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Indication.IndicationDescriptor
The descriptor for this indicator.
-
Constructor Summary
Constructors Constructor Description Indication(String pattern)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Pattern
getPattern()
Getter for the pattern to match.abstract FailureReader
getReader()
Gets a FailureReader used for finding this indication.String
getUserProvidedExpression()
String
toString()
FormValidation
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 Detail
-
Indication
public Indication(String pattern)
- Parameters:
pattern
- the String value.
-
-
Method Detail
-
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:
Descriptor.doHelp(org.kohsuke.stapler.StaplerRequest, org.kohsuke.stapler.StaplerResponse)
-
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.
-
-