atg.service.pipeline
Class PipelineResultImpl

java.lang.Object
  extended by atg.service.pipeline.PipelineResultImpl
All Implemented Interfaces:
PipelineResult

public class PipelineResultImpl
extends java.lang.Object
implements PipelineResult

An object which implements the PipelineResult interface. This is the default PipelineResultImpl object which is created by the PipelineManager when a chain is executed if no other PipelineResultImpl object is specified.

See Also:
PipelineChain, PipelineProcessor, PipelineResult

Field Summary
static java.lang.String CLASS_VERSION
           
protected  java.util.HashMap mErrors
           
 
Constructor Summary
PipelineResultImpl()
          Constructs a PipelineResult object.
 
Method Summary
 void addError(java.lang.Object pKey, java.lang.Object pError)
          Adds an error object mapped to aKey.
 void copyInto(PipelineResult pResult)
          Copies the data from pResult to this.
 java.lang.Object getError(java.lang.Object pKey)
          Returns the object associated with aKey.
 java.lang.Object[] getErrorKeys()
          Returns an array of key objects which exist in the PipelineResult.
 java.lang.Object[] getErrors()
          Returns an array of error objects which exist in the PipelineResult.
 boolean hasErrors()
          Returns true if at least one error object exists, false otherwise.
 void removeError(java.lang.Object pKey)
          Removes the error object mapped to aKey from the PipelineResult.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION

mErrors

protected java.util.HashMap mErrors
Constructor Detail

PipelineResultImpl

public PipelineResultImpl()
Constructs a PipelineResult object.

Method Detail

getError

public java.lang.Object getError(java.lang.Object pKey)
Returns the object associated with aKey. null should be returned if aKey does not exist.

Specified by:
getError in interface PipelineResult

addError

public void addError(java.lang.Object pKey,
                     java.lang.Object pError)
Adds an error object mapped to aKey.

Specified by:
addError in interface PipelineResult

getErrorKeys

public java.lang.Object[] getErrorKeys()
Returns an array of key objects which exist in the PipelineResult.

Specified by:
getErrorKeys in interface PipelineResult

getErrors

public java.lang.Object[] getErrors()
Returns an array of error objects which exist in the PipelineResult.

Specified by:
getErrors in interface PipelineResult

hasErrors

public boolean hasErrors()
Returns true if at least one error object exists, false otherwise.

Specified by:
hasErrors in interface PipelineResult

removeError

public void removeError(java.lang.Object pKey)
Removes the error object mapped to aKey from the PipelineResult.

Specified by:
removeError in interface PipelineResult

copyInto

public void copyInto(PipelineResult pResult)
Copies the data from pResult to this. If a key exists in the source, then it will overwrite the error in the destination.

Specified by:
copyInto in interface PipelineResult