|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.graph.commands.basic.BasicGraphCommand
org.jboss.dna.graph.commands.basic.BasicGetChildrenCommand
@NotThreadSafe public class BasicGetChildrenCommand
Constructor Summary | |
---|---|
BasicGetChildrenCommand(Path path)
|
Method Summary | |
---|---|
void |
addChild(Path.Segment nameOfChild,
Property... identityProperties)
Add the child to this node. |
CachePolicy |
getCachePolicy()
Get the caching policy to be used for this object. |
Property[] |
getChildIdentityProperties(Path.Segment child)
Get the identity properties for the supplied child. |
List<Path.Segment> |
getChildren()
|
Path |
getPath()
Get the path to which this command applies. |
DateTime |
getTimeLoaded()
Get the time that this node data was originally loaded. |
void |
setCachePolicy(CachePolicy cachePolicy)
Set the caching policy for this object. |
void |
setNoChildren()
Set that this node has no children. |
void |
setTimeLoaded(DateTime timeLoaded)
|
String |
toString()
|
Methods inherited from class org.jboss.dna.graph.commands.basic.BasicGraphCommand |
---|
getError, hasError, hasNoError, isCancelled, setCancelled, setError |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.dna.graph.commands.GraphCommand |
---|
getError, hasError, hasNoError, isCancelled, setError |
Constructor Detail |
---|
public BasicGetChildrenCommand(Path path)
path
- the path to the node; may not be nullMethod Detail |
---|
public void setNoChildren()
setNoChildren
in interface GetChildrenCommand
public void addChild(Path.Segment nameOfChild, Property... identityProperties)
addChild
in interface GetChildrenCommand
nameOfChild
- the name of the child; should not be the same as an existing child (not checked)identityProperties
- the property/properties that are considered identity properties (other than the name) for the
childGetChildrenCommand.addChild(org.jboss.dna.graph.properties.Path.Segment,
org.jboss.dna.graph.properties.Property[])
public Property[] getChildIdentityProperties(Path.Segment child)
child
- the name of the child
public List<Path.Segment> getChildren()
public Path getPath()
PathNotFoundException
exception should
be recorded as an error
.
getPath
in interface ActsOnPath
public CachePolicy getCachePolicy()
Note that the values of the policy are relative to the time the node was loaded
, so the same
instance can be used for many nodes.
getCachePolicy
in interface Cacheable
public DateTime getTimeLoaded()
getTimeLoaded
in interface Cacheable
public void setTimeLoaded(DateTime timeLoaded)
timeLoaded
- Sets timeLoaded to the specified value.public void setCachePolicy(CachePolicy cachePolicy)
setCachePolicy
in interface Cacheable
cachePolicy
- the caching policy to use for this objectpublic String toString()
toString
in class Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |