org.apache.jackrabbit.spi.commons.query.qom
Class AbstractQOMNode
java.lang.Object
org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
- Direct Known Subclasses:
- ColumnImpl, ConstraintImpl, DynamicOperandImpl, JoinConditionImpl, OrderingImpl, QueryObjectModelTree, SourceImpl, StaticOperandImpl
public abstract class AbstractQOMNode
- extends Object
AbstractQOMNode...
|
Method Summary |
abstract Object |
accept(QOMTreeVisitor visitor,
Object data)
Accepts a visitor and calls the appropriate visit method
depending on the type of this QOM node. |
protected String |
getJCRName(org.apache.jackrabbit.spi.Name name)
Returns the JCR name string for the given Name or
null if name is null. |
protected String |
getJCRPath(org.apache.jackrabbit.spi.Path path)
Returns the JCR path String for the given Path object or
null if path is null. |
protected String |
protect(Object expression)
|
protected String |
quote(org.apache.jackrabbit.spi.Name name)
|
protected String |
quote(org.apache.jackrabbit.spi.Path path)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resolver
protected final NamePathResolver resolver
AbstractQOMNode
public AbstractQOMNode(NamePathResolver resolver)
accept
public abstract Object accept(QOMTreeVisitor visitor,
Object data)
throws Exception
- Accepts a
visitor and calls the appropriate visit method
depending on the type of this QOM node.
- Parameters:
visitor - the visitor.data - user defined data, which is passed to the visit method.
- Throws:
Exception
getJCRName
protected String getJCRName(org.apache.jackrabbit.spi.Name name)
- Returns the JCR name string for the given
Name or
null if name is null.
- Parameters:
name - the Name.
- Returns:
- the prefixed JCR name or
name.toString() if an
unknown namespace URI is encountered.
getJCRPath
protected String getJCRPath(org.apache.jackrabbit.spi.Path path)
- Returns the JCR path String for the given
Path object or
null if path is null.
- Parameters:
path - A Path object.
- Returns:
- JCR path in the standard form or
path.toString()
if an unknown namespace URI is encountered.
quote
protected String quote(org.apache.jackrabbit.spi.Name name)
quote
protected String quote(org.apache.jackrabbit.spi.Path path)
protect
protected String protect(Object expression)
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.