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

java.lang.Object
  extended by org.jboss.dna.graph.commands.basic.BasicGraphCommand
      extended by org.jboss.dna.graph.commands.basic.BasicGetChildrenCommand
          extended by org.jboss.dna.graph.commands.basic.BasicGetNodeCommand
All Implemented Interfaces:
Serializable, Cacheable, ActsOnPath, GetChildrenCommand, GetNodeCommand, GetPropertiesCommand, GraphCommand
Direct Known Subclasses:
FederatedNode

@NotThreadSafe
public class BasicGetNodeCommand
extends BasicGetChildrenCommand
implements GetNodeCommand

Author:
Randall Hauch
See Also:
Serialized Form

Constructor Summary
BasicGetNodeCommand(Path path)
           
 
Method Summary
 Collection<Property> getProperties()
          Get the property values that were added to the command
 Map<Name,Property> getPropertiesByName()
           
 void setProperties(Map<Name,Property> properties)
           
 void setProperty(Property property)
          Set the values for the named property.
 String toString()
          
 
Methods inherited from class org.jboss.dna.graph.commands.basic.BasicGetChildrenCommand
addChild, getCachePolicy, getChildIdentityProperties, getChildren, getPath, getTimeLoaded, setCachePolicy, setNoChildren, setTimeLoaded
 
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.GetChildrenCommand
addChild, setNoChildren
 
Methods inherited from interface org.jboss.dna.graph.commands.GraphCommand
getError, hasError, hasNoError, isCancelled, setError
 
Methods inherited from interface org.jboss.dna.graph.commands.ActsOnPath
getPath
 
Methods inherited from interface org.jboss.dna.graph.cache.Cacheable
getCachePolicy, getTimeLoaded, setCachePolicy
 
Methods inherited from interface org.jboss.dna.graph.commands.GraphCommand
getError, hasError, hasNoError, isCancelled, setError
 
Methods inherited from interface org.jboss.dna.graph.commands.ActsOnPath
getPath
 
Methods inherited from interface org.jboss.dna.graph.cache.Cacheable
getCachePolicy, getTimeLoaded, setCachePolicy
 

Constructor Detail

BasicGetNodeCommand

public BasicGetNodeCommand(Path path)
Parameters:
path -
Method Detail

setProperty

public void setProperty(Property property)
Set the values for the named property. Any existing property values, if previously set, will be overwritten. If there are no property vlaues or if all of the property values are null, the property will be removed.

Specified by:
setProperty in interface GetPropertiesCommand
Parameters:
property - the property

setProperties

public void setProperties(Map<Name,Property> properties)

getProperties

public Collection<Property> getProperties()
Get the property values that were added to the command

Returns:
the map of property name to values

getPropertiesByName

public Map<Name,Property> getPropertiesByName()

toString

public String toString()

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


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