|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.graph.requests.Request
org.jboss.dna.graph.requests.CopyBranchRequest
public class CopyBranchRequest

Instruction that a branch be copied from one location into another.
| Field Summary | |
|---|---|
static NodeConflictBehavior |
DEFAULT_CONFLICT_BEHAVIOR
|
| Constructor Summary | |
|---|---|
CopyBranchRequest(Location from,
Location into)
Create a request to copy a branch to another. |
|
CopyBranchRequest(Location from,
Location into,
NodeConflictBehavior conflictBehavior)
Create a request to copy a branch to another. |
|
| Method Summary | |
|---|---|
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 |
from()
Get the location defining the top of the branch to be copied |
Location |
getActualLocationAfter()
Get the actual location of the node after being copied. |
Location |
getActualLocationBefore()
Get the actual location of the node before being copied. |
Location |
into()
Get the location defining the parent where the new copy is to be placed |
boolean |
isReadOnly()
Return whether this request only reads information. |
void |
setActualLocations(Location oldLocation,
Location newLocation)
Sets the actual and complete location of the node being renamed and its new location. |
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 CopyBranchRequest(Location from,
Location into)
from - the location of the top node in the existing branch that is to be copiedinto - the location of the existing node into which the copy should be placed
IllegalArgumentException - if from or into are null
public CopyBranchRequest(Location from,
Location into,
NodeConflictBehavior conflictBehavior)
from - the location of the top node in the existing branch that is to be copiedinto - the location of the existing node into which the copy should be placedconflictBehavior - the expected behavior if an equivalently-named child already exists at the into
location
IllegalArgumentException - if any of the parameters are null| Method Detail |
|---|
public Location from()
public Location into()
public boolean isReadOnly()
isReadOnly in class RequestRequest.isReadOnly()public NodeConflictBehavior conflictBehavior()
destination already has a node with the same
name.
public void setActualLocations(Location oldLocation,
Location newLocation)
path.
oldLocation - the actual location of the node before being renamednewLocation - the actual location of the node after being renamed
IllegalArgumentException - if the either location is null, if the old location does not represent the
same location as the from location, if the new location does not
represent the same location as the into location, or if the
either location does not have a pathpublic Location getActualLocationBefore()
public Location getActualLocationAfter()
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||