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...
-
-
Field Summary
Fields Modifier and Type Field Description protected NamePathResolverresolver
-
Constructor Summary
Constructors Constructor Description AbstractQOMNode(NamePathResolver resolver)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Objectaccept(QOMTreeVisitor visitor, Object data)Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.protected StringgetJCRName(Name name)Returns the JCR name string for the givenNameornullifnameisnull.protected StringgetJCRPath(Path path)Returns the JCR path String for the givenPathobject ornullifpathisnull.protected Stringprotect(Object expression)protected Stringquote(Name name)protected Stringquote(Path path)
-
-
-
Field Detail
-
resolver
protected final NamePathResolver resolver
-
-
Constructor Detail
-
AbstractQOMNode
public AbstractQOMNode(NamePathResolver resolver)
-
-
Method Detail
-
accept
public abstract Object accept(QOMTreeVisitor visitor, Object data) throws Exception
Accepts avisitorand 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(Name name)
Returns the JCR name string for the givenNameornullifnameisnull.- Parameters:
name- theName.- Returns:
- the prefixed JCR name or
name.toString()if an unknown namespace URI is encountered.
-
getJCRPath
protected String getJCRPath(Path path)
Returns the JCR path String for the givenPathobject ornullifpathisnull.- Parameters:
path- APathobject.- Returns:
- JCR path in the standard form or
path.toString()if an unknown namespace URI is encountered.
-
-