org.apache.jackrabbit.spi.commons.query.qom
Class AbstractQOMNode

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
Direct Known Subclasses:
ColumnImpl, ConstraintImpl, DynamicOperandImpl, JoinConditionImpl, OrderingImpl, QueryObjectModelTree, SourceImpl, StaticOperandImpl

public abstract class AbstractQOMNode
extends java.lang.Object

AbstractQOMNode...


Field Summary
protected  NamePathResolver resolver
           
 
Constructor Summary
AbstractQOMNode(NamePathResolver resolver)
           
 
Method Summary
abstract  java.lang.Object accept(QOMTreeVisitor visitor, java.lang.Object data)
          Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
protected  java.lang.String getJCRName(Name name)
          Returns the prefixed JCR name for the given qualified name or null if name is null.
protected  java.lang.String getJCRPath(Path path)
          Returns the prefixed JCR path for the given qualified path or null if path is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolver

protected final NamePathResolver resolver
Constructor Detail

AbstractQOMNode

public AbstractQOMNode(NamePathResolver resolver)
Method Detail

accept

public abstract java.lang.Object accept(QOMTreeVisitor visitor,
                                        java.lang.Object data)
                                 throws java.lang.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:
java.lang.Exception

getJCRName

protected java.lang.String getJCRName(Name name)
Returns the prefixed JCR name for the given qualified name or null if name is null.

Parameters:
name - the qualified name.
Returns:
the prefixed JCR name or name.toString() if an unknown namespace URI is encountered.

getJCRPath

protected java.lang.String getJCRPath(Path path)
Returns the prefixed JCR path for the given qualified path or null if path is null.

Parameters:
path - qualified path
Returns:
prefixed JCR path or path.toString() if an unknown namespace URI is encountered.


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.