|
|||||||||
| 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 null
public 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 null| Method Detail |
|---|
public Path getPath()
PathNotFoundException exception should
be recorded as an error.
getPath in interface ActsOnPathpublic Collection<Property> getProperties()
getProperties in interface ActsOnPropertiesgetProperties in interface CreateNodeCommandpublic NodeConflictBehavior getConflictBehavior()
path already exists.
getConflictBehavior in interface CreateNodeCommandpublic 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 Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||