|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.graph.commands.basic.BasicGraphCommand
org.jboss.dna.graph.commands.basic.BasicCreateNodeCommand
@NotThreadSafe public class BasicCreateNodeCommand
Constructor Summary | |
---|---|
BasicCreateNodeCommand(Path path)
|
|
BasicCreateNodeCommand(Path path,
Collection<Property> properties,
NodeConflictBehavior conflictBehavior)
|
Method Summary | |
---|---|
int |
compareTo(CreateNodeCommand that)
|
boolean |
equals(Object obj)
|
NodeConflictBehavior |
getConflictBehavior()
Get the desired behavior when a node at the target path already exists. |
Path |
getPath()
Get the path to which this command applies. |
Collection<Property> |
getProperties()
Get the properties. |
int |
hashCode()
|
void |
setProperties(Iterable<Property> properties)
|
void |
setProperties(Property... properties)
|
void |
setProperty(Property property)
|
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 |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.dna.graph.commands.GraphCommand |
---|
getError, hasError, hasNoError, isCancelled, setError |
Constructor Detail |
---|
public BasicCreateNodeCommand(Path path)
path
- the path to the node; may not be nullpublic BasicCreateNodeCommand(Path path, Collection<Property> properties, NodeConflictBehavior conflictBehavior)
path
- the path to the node; may not be nullproperties
- the properties of the node; may not be nullconflictBehavior
- the desired behavior when a node exists at the path
; may not be nullMethod Detail |
---|
public Path getPath()
PathNotFoundException
exception should
be recorded as an error
.
getPath
in interface ActsOnPath
public Collection<Property> getProperties()
getProperties
in interface ActsOnProperties
getProperties
in interface CreateNodeCommand
public NodeConflictBehavior getConflictBehavior()
path
already exists.
getConflictBehavior
in interface CreateNodeCommand
public void setProperty(Property property)
public void setProperties(Property... properties)
public void setProperties(Iterable<Property> properties)
public int compareTo(CreateNodeCommand that)
compareTo
in interface Comparable<CreateNodeCommand>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |