Class ItemSequence
- java.lang.Object
 - 
- org.apache.jackrabbit.commons.flat.ItemSequence
 
 
- 
public abstract class ItemSequence extends java.lang.ObjectThis class serves as main entry point for obtaining sequences of
Nodes andPropertys. It provides factory methods for creatingNodeSequences andPropertySequences.NodeSequence and PropertySequence instances provide a flat representation of a JCR hierarchy rooted at a certain node. They allow iterating over all items, retrieving items by key, checking whether a given key is mapped, adding new items and removing existing items.
The specifics of the mapping from the flat representation to the JCR hierarchy are delegated to a
TreeManager. Particularly the TreeManager specifies the order of the items when retrieved as sequence and when and how to add and remove intermediate nodes when new items are inserted or removed.An
TreeTraverser.ErrorHandleris used to handle exceptions which occur while traversing the hierarchy.- See Also:
 TreeTraverser,NodeSequence,PropertySequence,TreeManager
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodeSequencecreateNodeSequence(TreeManager treeManager)Create a newNodeSequenceinstance.static NodeSequencecreateNodeSequence(TreeManager treeManager, TreeTraverser.ErrorHandler errorHandler)Create a newNodeSequenceinstance.static PropertySequencecreatePropertySequence(TreeManager treeManager)Create a newPropertySequenceinstance.static PropertySequencecreatePropertySequence(TreeManager treeManager, TreeTraverser.ErrorHandler errorHandler)Create a newPropertySequenceinstance.NodeSequencegetNodeSequence()Create a newNodeSequenceinstance with the same parameterization as this instance.PropertySequencegetPropertySequence()Create a newPropertySequenceinstance with the same parametrization as this instance. 
 - 
 
- 
- 
Method Detail
- 
createNodeSequence
public static NodeSequence createNodeSequence(TreeManager treeManager, TreeTraverser.ErrorHandler errorHandler)
Create a newNodeSequenceinstance.- Parameters:
 treeManager- TheTreeManagerfor managing the mapping between the sequence view and the JCR hierarchy.errorHandler- TheTreeTraverser.ErrorHandlerfor handling exceptions occurring while- Returns:
 
 
- 
createNodeSequence
public static NodeSequence createNodeSequence(TreeManager treeManager)
Create a newNodeSequenceinstance.- Parameters:
 treeManager- TheTreeManagerfor managing the mapping between the sequence view and the JCR hierarchy.- Returns:
 
 
- 
createPropertySequence
public static PropertySequence createPropertySequence(TreeManager treeManager, TreeTraverser.ErrorHandler errorHandler)
Create a newPropertySequenceinstance.- Parameters:
 treeManager- TheTreeManagerfor managing the mapping between the sequence view and the JCR hierarchy.errorHandler- TheTreeTraverser.ErrorHandlerfor handling exceptions occurring while- Returns:
 
 
- 
createPropertySequence
public static PropertySequence createPropertySequence(TreeManager treeManager)
Create a newPropertySequenceinstance.- Parameters:
 treeManager- TheTreeManagerfor managing the mapping between the sequence view and the JCR hierarchy.- Returns:
 
 
- 
getNodeSequence
public NodeSequence getNodeSequence()
Create a newNodeSequenceinstance with the same parameterization as this instance.- Returns:
 
 
- 
getPropertySequence
public PropertySequence getPropertySequence()
Create a newPropertySequenceinstance with the same parametrization as this instance.- Returns:
 
 
 - 
 
 -