com.sonyericsson.jenkins.plugins.bfa.model.indication
Class BuildLogIndication.BuildLogIndicationDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<Indication>
      extended by com.sonyericsson.jenkins.plugins.bfa.model.indication.Indication.IndicationDescriptor
          extended by com.sonyericsson.jenkins.plugins.bfa.model.indication.BuildLogIndication.BuildLogIndicationDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Direct Known Subclasses:
MultilineBuildLogIndication.MultilineBuildLogIndicationDescriptor
Enclosing class:
BuildLogIndication

@Extension
public static class BuildLogIndication.BuildLogIndicationDescriptor
extends Indication.IndicationDescriptor

The descriptor.


Nested Class Summary
static class BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId
          An identifier for a non-numeric build for a given project, like "last build" and "last failed build".
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
BuildLogIndication.BuildLogIndicationDescriptor()
           
 
Method Summary
 hudson.util.FormValidation doMatchText(String testPattern, String testText, boolean textSourceIsUrl)
          Tests if a text matches a pattern.
 String getDisplayName()
           
protected  FailureReader getFailureReader(String testPattern)
           
 
Methods inherited from class com.sonyericsson.jenkins.plugins.bfa.model.indication.Indication.IndicationDescriptor
checkPattern, doCheckPattern, getAll
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildLogIndication.BuildLogIndicationDescriptor

public BuildLogIndication.BuildLogIndicationDescriptor()
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<Indication>

doMatchText

public hudson.util.FormValidation doMatchText(@QueryParameter(value="pattern")
                                              String testPattern,
                                              @QueryParameter(value="testText")
                                              String testText,
                                              @QueryParameter(value="textSourceIsUrl")
                                              boolean textSourceIsUrl)
Tests if a text matches a pattern.

Parameters:
testPattern - a pattern.
testText - a text.
textSourceIsUrl - a boolean indicating whether testText is a URL containing the text to be matched against pattern or a text that should be matched directly against pattern.
Returns:
FormValidation.ok(java.lang.String) if the pattern is valid and the string matches the pattern, FormValidation.warning(java.lang.String) if the pattern is valid and the string does not match the pattern, FormValidation.error(java.lang.String) otherwise.

getFailureReader

protected FailureReader getFailureReader(String testPattern)
Parameters:
testPattern - the test pattern for the indication passed to the failure reader
Returns:
the failure reader corresponding to this descriptor


Copyright © 2004-2014. All Rights Reserved.