|
|||||||||
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.RenameNodeRequest
public class RenameNodeRequest
Instruction to rename an existing node (but keep it under the same parent). The same-name-sibling index will be determined automatically, based upon it's current location within the list of children.
Constructor Summary | |
---|---|
RenameNodeRequest(Location at,
Name newName)
Create a request to rename the node at the supplied location. |
Method Summary | |
---|---|
Location |
at()
Get the location defining the node that is to be read. |
boolean |
equals(Object obj)
|
Location |
getActualLocationAfter()
Get the actual location of the node after being renamed. |
Location |
getActualLocationBefore()
Get the actual location of the node before being renamed. |
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. |
Name |
toName()
Get the new name for the node. |
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 |
Constructor Detail |
---|
public RenameNodeRequest(Location at, Name newName)
at
- the location of the node to be readnewName
- the new name for the node
IllegalArgumentException
- if the location is nullMethod Detail |
---|
public boolean isReadOnly()
isReadOnly
in class Request
Request.isReadOnly()
public Location at()
public Name toName()
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 or is missing its path, if the old location does not
represent the same location
as the current location
, if the new
location does not have the same parent as the old location, or if the new location does not have the same
name
on last segment
as that specified on the request
public Location getActualLocationBefore()
public Location getActualLocationAfter()
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 |