org.jboss.dna.graph.commands.basic
Class BasicCompositeCommand

java.lang.Object
  extended by org.jboss.dna.graph.commands.basic.BasicGraphCommand
      extended by org.jboss.dna.graph.commands.basic.BasicCompositeCommand
All Implemented Interfaces:
Iterable<GraphCommand>, CompositeCommand, GraphCommand

public class BasicCompositeCommand
extends BasicGraphCommand
implements CompositeCommand

Author:
Randall Hauch

Constructor Summary
BasicCompositeCommand()
           
 
Method Summary
 void add(GraphCommand command)
           
 BasicCompositeCommand clearCommands()
           
 GraphCommand getCommand(int index)
           
 boolean isEmpty()
           
 Iterator<GraphCommand> iterator()
          
 int size()
           
 String toString()
          
 
Methods inherited from class org.jboss.dna.graph.commands.basic.BasicGraphCommand
getError, hasError, hasNoError, isCancelled, setCancelled, setError
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.dna.graph.commands.GraphCommand
getError, hasError, hasNoError, isCancelled, setError
 

Constructor Detail

BasicCompositeCommand

public BasicCompositeCommand()
Method Detail

isEmpty

public boolean isEmpty()

size

public int size()

add

public void add(GraphCommand command)

getCommand

public GraphCommand getCommand(int index)

iterator

public Iterator<GraphCommand> iterator()

Specified by:
iterator in interface Iterable<GraphCommand>
See Also:
Iterable.iterator()

clearCommands

public BasicCompositeCommand clearCommands()

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


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