com.sonyericsson.jenkins.plugins.bfa.model.indication
Class Indication

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

public abstract class Indication
extends Object
implements hudson.model.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
static class Indication.IndicationDescriptor
          The descriptor for this indicator.
 
Constructor Summary
protected Indication()
          Default constructor.
  Indication(String pattern)
           
 
Method Summary
 Pattern getPattern()
          Getter for the pattern to match.
abstract  FailureReader getReader()
          Gets a FailureReader used for finding this indication.
 String toString()
           
 hudson.util.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

@DataBoundConstructor
public Indication(String pattern)
Parameters:
pattern - the String value.

Indication

protected Indication()
Default constructor. Do not use this unless you are a serializer.

Method Detail

getReader

public abstract FailureReader getReader()
Gets a FailureReader used for finding this indication.

Returns:
a FailureReader.

validate

public hudson.util.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 Pattern getPattern()
Getter for the pattern to match.

Returns:
the pattern to match.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2014. All Rights Reserved.