public abstract class AbstractNodeVisitor extends Object implements NodeVisitor
Constructor and Description |
---|
AbstractNodeVisitor() |
Modifier and Type | Method and Description |
---|---|
protected Object |
getValueRepresentation(javax.jcr.Value jcrValue) |
protected boolean |
skipChild(ResourceContext context,
ContentTypeChild childType,
javax.jcr.Node child) |
protected boolean |
skipProperty(ResourceContext context,
ContentTypeProperty propertyType,
javax.jcr.Property property) |
void |
visit(ResourceContext context,
javax.jcr.Node node,
Map<String,Object> response) |
protected void |
visitChildren(ResourceContext context,
javax.jcr.Node node,
Map<String,Object> response)
Visit all supported child nodes of the current node
|
protected void |
visitNode(ResourceContext context,
javax.jcr.Node node,
Map<String,Object> response) |
protected void |
visitNodeItems(ResourceContext context,
javax.jcr.Node node,
Map<String,Object> response) |
protected void |
visitProperties(ResourceContext context,
javax.jcr.Node node,
Map<String,Object> response)
Visit all supported properties of the current node
|
protected void |
visitProperty(ResourceContext context,
ContentTypeProperty propertyType,
javax.jcr.Property property,
Map<String,Object> response) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNodeType
public void visit(ResourceContext context, javax.jcr.Node node, Map<String,Object> response) throws javax.jcr.RepositoryException
visit
in interface NodeVisitor
javax.jcr.RepositoryException
protected void visitNode(ResourceContext context, javax.jcr.Node node, Map<String,Object> response) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void visitNodeItems(ResourceContext context, javax.jcr.Node node, Map<String,Object> response) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void visitProperties(ResourceContext context, javax.jcr.Node node, Map<String,Object> response) throws javax.jcr.RepositoryException
Properties are only visited when they are:
Note that no same-named child will be visited through visitChildren(ResourceContext, Node, Map)
as the content type service will ignore/hide properties for which such same-named child is defined.
context
- ResourceContentnode
- the current noderesponse
- the responsejavax.jcr.RepositoryException
protected void visitProperty(ResourceContext context, ContentTypeProperty propertyType, javax.jcr.Property property, Map<String,Object> response) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void visitChildren(ResourceContext context, javax.jcr.Node node, Map<String,Object> response) throws javax.jcr.RepositoryException
Child nodes are only visited when they are:
Note that no same-named property will be visited through visitProperties(ResourceContext, Node, Map)
as the content type service will ignore/hide properties for which such same-named child is defined.
context
- ResourceContentnode
- the current noderesponse
- the responsejavax.jcr.RepositoryException
protected Object getValueRepresentation(javax.jcr.Value jcrValue) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected boolean skipProperty(ResourceContext context, ContentTypeProperty propertyType, javax.jcr.Property property) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected boolean skipChild(ResourceContext context, ContentTypeChild childType, javax.jcr.Node child) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.