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

java.lang.Object
  extended by org.jboss.dna.graph.commands.basic.BasicGraphCommand
      extended by org.jboss.dna.graph.commands.basic.BasicSetPropertiesCommand
All Implemented Interfaces:
ActsOnPath, ActsOnProperties, GraphCommand, SetPropertiesCommand

@NotThreadSafe
public class BasicSetPropertiesCommand
extends BasicGraphCommand
implements SetPropertiesCommand

Author:
Randall Hauch

Constructor Summary
BasicSetPropertiesCommand(Path path, List<Property> properties)
           
 
Method Summary
 Path getPath()
          Get the path to which this command applies.
 Collection<Property> getProperties()
          Get the properties.
 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

BasicSetPropertiesCommand

public BasicSetPropertiesCommand(Path path,
                                 List<Property> properties)
Parameters:
path - the path to the node; may not be null
properties - the properties of the node; may not be null
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

getProperties

public Collection<Property> getProperties()
Get the properties. Any property with no values will be removed.

Specified by:
getProperties in interface ActsOnProperties
Returns:
the properties

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.