|
|||||||||
| 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.MoveBranchRequest
public class MoveBranchRequest

Instruction that a branch be moved from one location into another.
| Field Summary | |
|---|---|
static NodeConflictBehavior |
DEFAULT_CONFLICT_BEHAVIOR
|
| Constructor Summary | |
|---|---|
MoveBranchRequest(Location from,
Location into)
Create a request to move a branch from one location into another. |
|
MoveBranchRequest(Location from,
Location into,
NodeConflictBehavior conflictBehavior)
Create a request to move a branch from one location into 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 moved |
Location |
getActualLocationAfter()
Get the actual location of the node after being moved. |
Location |
getActualLocationBefore()
Get the actual location of the node before being moved. |
Location |
into()
Get the location defining the parent where the branch 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 MoveBranchRequest(Location from,
Location into)
from - the location of the top node in the existing branch that is to be movedinto - the location of the existing node into which the branch should be moved
IllegalArgumentException - if from or into are null
public MoveBranchRequest(Location from,
Location into,
NodeConflictBehavior conflictBehavior)
from - the location of the top node in the existing branch that is to be movedinto - the location of the existing node into which the branch should be movedconflictBehavior - 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 NodeConflictBehavior conflictBehavior()
destination already has a node with the same
name.
public boolean isReadOnly()
isReadOnly in class RequestRequest.isReadOnly()
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 | ||||||||