|
|||||||||
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.RemovePropertiesRequest
public class RemovePropertiesRequest
Instruction to remove properties from the node at the specified location.
Constructor Summary | |
---|---|
RemovePropertiesRequest(Location from,
Iterable<Name> propertyNames)
Create a request to remove the properties with the given names from the node at the supplied location. |
|
RemovePropertiesRequest(Location from,
Iterator<Name> propertyNames)
Create a request to remove the properties with the given names from the node at the supplied location. |
|
RemovePropertiesRequest(Location from,
Name... propertyNames)
Create a request to remove the properties with the given names from the node at the supplied location. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Location |
from()
Get the location defining the node from which the properties are to be removed. |
Location |
getActualLocationOfNode()
Get the actual location of the node whose properties were removed. |
boolean |
isReadOnly()
Return whether this request only reads information. |
Iterator<Name> |
iterator()
|
Collection<Name> |
propertyNames()
Get the names of the properties that are to be removed from the node. |
void |
setActualLocationOfNode(Location actual)
Sets the actual and complete location of the node whose properties were removed. |
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 RemovePropertiesRequest(Location from, Name... propertyNames)
from
- the location of the node to be readpropertyNames
- the names of the properties to be removed from the node
IllegalArgumentException
- if the location is null or if there are no properties to removepublic RemovePropertiesRequest(Location from, Iterable<Name> propertyNames)
from
- the location of the node to be readpropertyNames
- the names of the properties to be removed from the node
IllegalArgumentException
- if the location is null or if there are no properties to removepublic RemovePropertiesRequest(Location from, Iterator<Name> propertyNames)
from
- the location of the node to be readpropertyNames
- the names of the properties to be removed from the node
IllegalArgumentException
- if the location is null or if there are no properties to removeMethod Detail |
---|
public boolean isReadOnly()
isReadOnly
in class Request
Request.isReadOnly()
public Location from()
public Iterator<Name> iterator()
iterator
in interface Iterable<Name>
Iterable.iterator()
public Collection<Name> propertyNames()
public void setActualLocationOfNode(Location actual)
path
.
actual
- the actual location of the node being changed, 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 |