|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.graph.requests.Request org.jboss.dna.graph.requests.CreateNodeRequest
public class CreateNodeRequest
Instruction to create the node at the specified location. This command will create the node and set the initial properties.
Field Summary | |
---|---|
static NodeConflictBehavior |
DEFAULT_CONFLICT_BEHAVIOR
|
Constructor Summary | |
---|---|
CreateNodeRequest(Location at,
Iterable<Property> properties)
Create a request to create a node with the given properties at the supplied location. |
|
CreateNodeRequest(Location at,
Iterator<Property> properties)
Create a request to create a node with the given properties at the supplied location. |
|
CreateNodeRequest(Location at,
NodeConflictBehavior conflictBehavior,
Iterable<Property> properties)
Create a request to create a node with the given properties at the supplied location. |
|
CreateNodeRequest(Location at,
NodeConflictBehavior conflictBehavior,
Iterator<Property> properties)
Create a request to create a node with the given properties at the supplied location. |
|
CreateNodeRequest(Location at,
NodeConflictBehavior conflictBehavior,
Property... properties)
Create a request to create a node with the given properties at the supplied location. |
|
CreateNodeRequest(Location at,
Property... properties)
Create a request to create a node with the given properties at the supplied location. |
Method Summary | |
---|---|
Location |
at()
Get the location defining the node that is to be created. |
NodeConflictBehavior |
conflictBehavior()
Get the expected behavior when copying the branch and the destination already has a node with the same name. |
boolean |
equals(Object obj)
|
Location |
getActualLocationOfNode()
Get the actual location of the node that was created. |
boolean |
isReadOnly()
Return whether this request only reads information. |
Iterator<Property> |
iterator()
|
Collection<Property> |
properties()
Get the properties for the node. |
void |
setActualLocationOfNode(Location actual)
Sets the actual and complete location of the node being created. |
String |
toString()
|
Methods inherited from class org.jboss.dna.graph.requests.Request |
---|
cancel, getError, hasError, isCancelled, setError |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final NodeConflictBehavior DEFAULT_CONFLICT_BEHAVIOR
Constructor Detail |
---|
public CreateNodeRequest(Location at, Property... properties)
at
- the location of the node to be readproperties
- the properties of the new node, which should not include the location's
identification properties
IllegalArgumentException
- if the location is nullpublic CreateNodeRequest(Location at, Iterable<Property> properties)
at
- the location of the node to be readproperties
- the properties of the new node, which should not include the location's
identification properties
IllegalArgumentException
- if the location is nullpublic CreateNodeRequest(Location at, Iterator<Property> properties)
at
- the location of the node to be readproperties
- the properties of the new node, which should not include the location's
identification properties
IllegalArgumentException
- if the location is nullpublic CreateNodeRequest(Location at, NodeConflictBehavior conflictBehavior, Property... properties)
at
- the location of the node to be readproperties
- the properties of the new node, which should not include the location's
identification properties
conflictBehavior
- the expected behavior if an equivalently-named child already exists at the into
location
IllegalArgumentException
- if the location or the conflict behavior is nullpublic CreateNodeRequest(Location at, NodeConflictBehavior conflictBehavior, Iterable<Property> properties)
at
- the location of the node to be readproperties
- the properties of the new node, which should not include the location's
identification properties
conflictBehavior
- the expected behavior if an equivalently-named child already exists at the into
location
IllegalArgumentException
- if the location or the conflict behavior is nullpublic CreateNodeRequest(Location at, NodeConflictBehavior conflictBehavior, Iterator<Property> properties)
at
- the location of the node to be readproperties
- the properties of the new node, which should not include the location's
identification properties
conflictBehavior
- the expected behavior if an equivalently-named child already exists at the into
location
IllegalArgumentException
- if the location or the conflict behavior is nullMethod Detail |
---|
public Location at()
public Iterator<Property> iterator()
iterator
in interface Iterable<Property>
Iterable.iterator()
public Collection<Property> properties()
location
has identification properties, the resulting
properties will include the identification properties
.
public NodeConflictBehavior conflictBehavior()
destination
already has a node with the same name.
public boolean isReadOnly()
isReadOnly
in class Request
Request.isReadOnly()
public void setActualLocationOfNode(Location actual)
path
.
actual
- the actual location of the node being created, or null if the current location
should be used
IllegalArgumentException
- if the actual location does not represent the same
location
as the current location
, or if the actual location does not have a path.public Location getActualLocationOfNode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.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 |