org.jboss.dna.graph.commands
Interface GraphCommand

All Known Subinterfaces:
CompositeCommand, CopyBranchCommand, CopyNodeCommand, CreateNodeCommand, DeleteBranchCommand, GetChildrenCommand, GetNodeCommand, GetPropertiesCommand, MoveBranchCommand, RecordBranchCommand, SetPropertiesCommand
All Known Implementing Classes:
ActsOnProjectedPathCommand, BasicCompositeCommand, BasicCopyBranchCommand, BasicCopyNodeCommand, BasicCreateNodeCommand, BasicDeleteBranchCommand, BasicGetChildrenCommand, BasicGetNodeCommand, BasicGetPropertiesCommand, BasicGraphCommand, BasicMoveBranchCommand, BasicRecordBranchCommand, BasicSetPropertiesCommand, FederatedNode, ProjectedCopyBranchCommand, ProjectedCopyNodeCommand, ProjectedCreateNodeCommand, ProjectedDeleteBranchCommand, ProjectedGetChildrenCommand, ProjectedGetNodeCommand, ProjectedGetPropertiesCommand, ProjectedMoveBranchCommand, ProjectedRecordBranchCommand, ProjectedSetPropertiesCommand

public interface GraphCommand

The base interface for all repository commands

Author:
Randall Hauch

Method Summary
 Throwable getError()
          Get the error for this command.
 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.
 

Method Detail

isCancelled

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

Returns:
true if this command has been cancelled, or false otherwise.

setError

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

Parameters:
error - the exception
See Also:
getError(), hasError(), hasNoError()

getError

Throwable getError()
Get the error for this command.

Returns:
the error, or null if there is no error
See Also:
setError(Throwable), hasError(), hasNoError()

hasError

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

Returns:
true if the command has an error, or false otherwise
See Also:
getError(), setError(Throwable), hasNoError()

hasNoError

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

Returns:
true if the command has no error, or false otherwise
See Also:
getError(), setError(Throwable), hasError()


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