hudson.plugins.robot.model
Class RobotTestObject

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.plugins.robot.model.RobotTestObject
All Implemented Interfaces:
hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, java.io.Serializable
Direct Known Subclasses:
RobotCaseResult, RobotResult, RobotSuiteResult

public abstract class RobotTestObject
extends hudson.model.AbstractModelObject
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
RobotTestObject()
           
 
Method Summary
abstract  java.lang.String getName()
           
 hudson.model.AbstractBuild<?,?> getOwner()
          Return the build that this result belongs to.
abstract  RobotTestObject getParent()
           
 RobotBuildAction getParentAction()
           
abstract  RobotTestObject getPreviousResult()
           
 java.lang.String getRelativeId(RobotTestObject thisObject)
          Get path in tree relative to given TestObject
 java.lang.String getRelativePackageName(RobotTestObject thisObject)
          Generates the full packagename
 RobotTestObject getResultInBuild(hudson.model.AbstractBuild<?,?> build)
          Get the corresponding result object from a given build
 java.lang.String getSafeName()
          Get URL-safe name for the object
protected  boolean isNeedToGenerate(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Figure out if there's been changes since last request.
 void setParentAction(RobotBuildAction parentAction)
           
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.ModelObject
getDisplayName
 
Methods inherited from interface hudson.search.SearchItem
getSearchUrl
 

Constructor Detail

RobotTestObject

public RobotTestObject()
Method Detail

getParentAction

public RobotBuildAction getParentAction()

setParentAction

public void setParentAction(RobotBuildAction parentAction)

getName

public abstract java.lang.String getName()

getParent

public abstract RobotTestObject getParent()

getRelativePackageName

public java.lang.String getRelativePackageName(RobotTestObject thisObject)
Generates the full packagename

Returns:

getRelativeId

public java.lang.String getRelativeId(RobotTestObject thisObject)
Get path in tree relative to given TestObject

Returns:

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()
Return the build that this result belongs to.

Returns:
Build object. Null if no build.

getResultInBuild

public RobotTestObject getResultInBuild(hudson.model.AbstractBuild<?,?> build)
Get the corresponding result object from a given build

Parameters:
build -
Returns:

getSafeName

public java.lang.String getSafeName()
Get URL-safe name for the object

Returns:

isNeedToGenerate

protected boolean isNeedToGenerate(org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
                            throws java.io.IOException
Figure out if there's been changes since last request.

Parameters:
req -
rsp -
Returns:
Throws:
java.io.IOException

getPreviousResult

public abstract RobotTestObject getPreviousResult()


Copyright © 2004-2012. All Rights Reserved.