public class RepositoryNodeGenerator extends AbstractRepositoryGenerator
Modifier and Type | Class and Description |
---|---|
protected static class |
RepositoryNodeGenerator.NodeNameComparator
Compares two nodes on its names.
|
Modifier and Type | Field and Description |
---|---|
private static Comparator<Node> |
__ALPHA_NODE_COMPARATOR |
private static Comparator<Node> |
__REVERSE_ALPHA_NODE_COMPARATOR |
_repositoryProvider, _session
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
RepositoryNodeGenerator() |
Modifier and Type | Method and Description |
---|---|
private Collection<Node> |
_extractNodes(NodeIterator itNodes,
long start,
long end,
boolean ascending) |
private void |
_saxChildren(Node node,
long start,
long end,
String order) |
private void |
_saxGroups(Node node,
long startIndex,
long childCount)
Generate node groups.
|
private void |
_saxNode(Session session,
String order) |
private void |
_saxProperties(Node node) |
private void |
_saxProperty(Property property,
Node parentNode) |
private void |
_saxReferers(Node node) |
private void |
_saxSubnode(Node node)
Sax a sub node.
|
private void |
_saxValue(Value value) |
void |
generate() |
_getRepository, service
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
private static final Comparator<Node> __ALPHA_NODE_COMPARATOR
private static final Comparator<Node> __REVERSE_ALPHA_NODE_COMPARATOR
public RepositoryNodeGenerator()
public void generate() throws IOException, SAXException, ProcessingException
private void _saxNode(Session session, String order) throws SAXException, RepositoryException
SAXException
RepositoryException
private void _saxProperties(Node node) throws SAXException, RepositoryException
SAXException
RepositoryException
private void _saxProperty(Property property, Node parentNode) throws SAXException, RepositoryException
SAXException
RepositoryException
private void _saxChildren(Node node, long start, long end, String order) throws SAXException, RepositoryException
SAXException
RepositoryException
private Collection<Node> _extractNodes(NodeIterator itNodes, long start, long end, boolean ascending)
private void _saxGroups(Node node, long startIndex, long childCount) throws RepositoryException, SAXException
node
- The node to considerstartIndex
- The index to start the groupchildCount
- The group sizeRepositoryException
- if an error occurredSAXException
- if an error occurredprivate void _saxSubnode(Node node) throws RepositoryException, SAXException
node
- the sub node to SAX.RepositoryException
- if an error occurredSAXException
- if an error occurredprivate void _saxReferers(Node node) throws SAXException, RepositoryException
SAXException
RepositoryException
private void _saxValue(Value value) throws RepositoryException, SAXException
RepositoryException
SAXException