|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.cache.document.AbstractChildReferences
org.modeshape.jcr.cache.document.MutableChildReferences
@ThreadSafe public class MutableChildReferences
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.modeshape.jcr.cache.document.AbstractChildReferences |
---|
AbstractChildReferences.ChildReferenceWithNameIterator |
Nested classes/interfaces inherited from interface org.modeshape.jcr.cache.ChildReferences |
---|
ChildReferences.BasicContext, ChildReferences.Changes, ChildReferences.ChildInsertions, ChildReferences.Context, ChildReferences.NoChanges, ChildReferences.NoContext, ChildReferences.NoSnsIndexesContext, ChildReferences.SingleNameContext, ChildReferences.WithChanges |
Constructor Summary | |
---|---|
protected |
MutableChildReferences()
|
Method Summary | |
---|---|
void |
append(Iterable<ChildReference> references)
|
void |
append(NodeKey key,
Name name)
|
Iterator<NodeKey> |
getAllKeys()
Get the keys for all of the children. |
ChildReference |
getChild(Name name,
int snsIndex,
ChildReferences.Context context)
Look for the child reference that has the given name and SNS index. |
ChildReference |
getChild(NodeKey key)
Look for the child reference that has the node key. |
ChildReference |
getChild(NodeKey key,
ChildReferences.Context context)
Look for the child reference that has the node key. |
int |
getChildCount(Name name)
Return the number of nodes that have the supplied name. |
boolean |
hasChild(NodeKey key)
Determine if this contains a reference to the specified child. |
Iterator<ChildReference> |
iterator()
Get an iterator over all of the children. |
Iterator<ChildReference> |
iterator(Name name)
Get an iterator over all of the children that have same name matching the supplied value. |
ChildReference |
remove(NodeKey key)
|
long |
size()
Get the total number of child references for the node, including all subsequent blocks of ChildReferences. |
StringBuilder |
toString(StringBuilder sb)
|
Methods inherited from class org.modeshape.jcr.cache.document.AbstractChildReferences |
---|
contextSensitiveIterator, getChild, getChild, getChild, isEmpty, iterator, iterator, iterator, iterator, iterator, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected MutableChildReferences()
Method Detail |
---|
public long size()
ChildReferences
public int getChildCount(Name name)
ChildReferences
name
- the name
public ChildReference getChild(Name name, int snsIndex, ChildReferences.Context context)
ChildReferences
name
- the name for the nodesnsIndex
- the same-name-sibling index; must be positivecontext
- the context in which the child should be evaluated; may be null if there is no context
public ChildReference getChild(NodeKey key, ChildReferences.Context context)
ChildReferences
key
- the node key of the childcontext
- the context in which the child should be evaluated; may be null if there is no context
public ChildReference getChild(NodeKey key)
ChildReferences
key
- the node key of the child
public boolean hasChild(NodeKey key)
ChildReferences
key
- the node key of the child
public Iterator<ChildReference> iterator()
ChildReferences
public Iterator<ChildReference> iterator(Name name)
ChildReferences
iterator
in interface ChildReferences
iterator
in class AbstractChildReferences
name
- the name of the same-name-sibling nodes; may not be null
public Iterator<NodeKey> getAllKeys()
ChildReferences
public void append(NodeKey key, Name name)
public void append(Iterable<ChildReference> references)
public ChildReference remove(NodeKey key)
public StringBuilder toString(StringBuilder sb)
toString
in class AbstractChildReferences
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |