org.jboss.dna.connector.federation.executor
Class ActsOnProjectedPathCommand<T extends ActsOnPath & GraphCommand>

java.lang.Object
  extended by org.jboss.dna.connector.federation.executor.ActsOnProjectedPathCommand<T>
Type Parameters:
T - the command type
All Implemented Interfaces:
ActsOnPath, GraphCommand
Direct Known Subclasses:
ProjectedCopyBranchCommand, ProjectedCopyNodeCommand, ProjectedCreateNodeCommand, ProjectedDeleteBranchCommand, ProjectedGetChildrenCommand, ProjectedGetNodeCommand, ProjectedGetPropertiesCommand, ProjectedMoveBranchCommand, ProjectedRecordBranchCommand, ProjectedSetPropertiesCommand

public class ActsOnProjectedPathCommand<T extends ActsOnPath & GraphCommand>
extends Object
implements ActsOnPath, GraphCommand

Author:
Randall Hauch

Method Summary
 Throwable getError()
          Get the error for this command.
 Path getPath()
          Get the path to which this command applies.
 boolean hasError()
          Return true if this command has an error.
 boolean hasNoError()
          Convenience method that is equivalent to !
 boolean isCancelled()
          Return whether this command has been cancelled.
 void setError(Throwable error)
          Set the error for this command.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPath

public Path getPath()
Get the path to which this command applies. If the path does not exist, an PathNotFoundException exception should be recorded as an error.

Specified by:
getPath in interface ActsOnPath
Returns:
the path; never null
See Also:
ActsOnPath.getPath()

getError

public Throwable getError()
Get the error for this command.

Specified by:
getError in interface GraphCommand
Returns:
the error, or null if there is no error
See Also:
GraphCommand.getError()

hasError

public boolean hasError()
Return true if this command has an error.

Specified by:
hasError in interface GraphCommand
Returns:
true if the command has an error, or false otherwise
See Also:
GraphCommand.hasError()

hasNoError

public boolean hasNoError()
Convenience method that is equivalent to !hasError().

Specified by:
hasNoError in interface GraphCommand
Returns:
true if the command has no error, or false otherwise
See Also:
GraphCommand.hasNoError()

isCancelled

public boolean isCancelled()
Return whether this command has been cancelled.

Specified by:
isCancelled in interface GraphCommand
Returns:
true if this command has been cancelled, or false otherwise.
See Also:
GraphCommand.isCancelled()

setError

public void setError(Throwable error)
Set the error for this command.

Specified by:
setError in interface GraphCommand
Parameters:
error - the exception
See Also:
GraphCommand.setError(java.lang.Throwable)


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.