|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CachedNode
A representation of a node as stored within the cache.
Nested Class Summary | |
---|---|
static class |
CachedNode.ReferenceType
|
Method Summary | |
---|---|
Set<NodeKey> |
getAdditionalParentKeys(NodeCache cache)
Get the keys for all of the nodes (other than the primary parent ) under which this node
appears. |
ChildReferences |
getChildReferences(NodeCache cache)
Get the set of child references for this node. |
NodeKey |
getKey()
Get the key for the node. |
Set<Name> |
getMixinTypes(NodeCache cache)
Get the set of mixin types for this node. |
Name |
getName(NodeCache cache)
Get the name for this node, without any same-name-sibiling (SNS) index. |
NodeKey |
getParentKey(NodeCache cache)
Get the node key for this node's primary parent within this workspace. |
NodeKey |
getParentKeyInAnyWorkspace(NodeCache cache)
Get the node key for this node's primary parent in any workspace. |
Path |
getPath(NodeCache cache)
Get the path to this node. |
Path |
getPath(PathCache pathCache)
Get the path to this node. |
Name |
getPrimaryType(NodeCache cache)
Get the primary type for this node. |
Iterator<Property> |
getProperties(Collection<?> namePatterns,
NodeCache cache)
Get an iterator over all of the properties of this node that have names matching at least one of the supplied patterns. |
Iterator<Property> |
getProperties(NodeCache cache)
Get an iterator over all of the node's properties. |
Property |
getProperty(Name name,
NodeCache cache)
Get the property with the given name. |
int |
getPropertyCount(NodeCache cache)
Determine the number of properties that this node contains. |
Set<NodeKey> |
getReferrers(NodeCache cache,
CachedNode.ReferenceType type)
Get the keys of the nodes that have JCR REFERENCE and/or WEAK_REFERENCE properties pointing to this node. |
Path.Segment |
getSegment(NodeCache cache)
Get the path segment for this node. |
boolean |
hasProperties(NodeCache cache)
Determine if the node contains one or more properties. |
boolean |
hasProperty(Name name,
NodeCache cache)
Determine if the node contains a property with the specified name. |
boolean |
isAtOrBelow(NodeCache cache,
Path path)
Determine if this node is effectively at or below the supplied path. |
Method Detail |
---|
NodeKey getKey()
Name getName(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
NodeNotFoundInParentException
- if this node no longer exists inside the parent node (and perhaps in no other parent)
NodeNotFoundException
- if this node no longer existsgetSegment(NodeCache)
,
getPath(NodeCache)
Path.Segment getSegment(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
NodeNotFoundInParentException
- if this node no longer exists inside the parent node (and perhaps in no other parent)
NodeNotFoundException
- if this node no longer existsgetName(NodeCache)
,
getPath(NodeCache)
Path getPath(NodeCache cache) throws NodeNotFoundException
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
NodeNotFoundInParentException
- if this node no longer exists inside the parent node (and perhaps in no other parent)
NodeNotFoundException
- if this node no longer existsgetName(NodeCache)
,
getSegment(NodeCache)
Path getPath(PathCache pathCache) throws NodeNotFoundException
pathCache
- the cache of paths that can be used to compute the path for any node; may not be null
NodeNotFoundInParentException
- if this node no longer exists inside the parent node (and perhaps in no other parent)
NodeNotFoundException
- if this node no longer existsgetName(NodeCache)
,
getSegment(NodeCache)
NodeKey getParentKey(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
NodeKey getParentKeyInAnyWorkspace(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
Set<NodeKey> getAdditionalParentKeys(NodeCache cache)
primary parent
) under which this node
appears.
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
Name getPrimaryType(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
Set<Name> getMixinTypes(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
int getPropertyCount(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
boolean hasProperties(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
boolean hasProperty(Name name, NodeCache cache)
name
- the name of the propertycache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
Property getProperty(Name name, NodeCache cache)
name
- the name of the propertycache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
NodeNotFoundException
- if this node no longer existsIterator<Property> getProperties(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
Iterator<Property> getProperties(Collection<?> namePatterns, NodeCache cache)
namePatterns
- the regex patterns or string literals describing the namescache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
ChildReferences getChildReferences(NodeCache cache)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be null
Set<NodeKey> getReferrers(NodeCache cache, CachedNode.ReferenceType type)
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be nulltype
- the flag specifying whether nodes with REFERENCE properties and/or WEAK reference properties should be included
in the result; may not be null
boolean isAtOrBelow(NodeCache cache, Path path)
additional parents
, a node has multiple effective paths.
cache
- the cache to which this node belongs, required in case this node needs to use the cache; may not be nullpath
- the path to be used for comparison; may not be null
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |