Class SelectorImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
-
- org.apache.jackrabbit.spi.commons.query.qom.SourceImpl
-
- org.apache.jackrabbit.spi.commons.query.qom.SelectorImpl
-
- All Implemented Interfaces:
javax.jcr.query.qom.Selector,javax.jcr.query.qom.Source
public class SelectorImpl extends SourceImpl implements javax.jcr.query.qom.Selector
SelectorImpl...
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(QOMTreeVisitor visitor, java.lang.Object data)Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.java.lang.StringgetNodeTypeName()Gets the name of the required node type.NamegetNodeTypeQName()Gets the name of the required node type.java.lang.StringgetSelectorName()Gets the selector name.NamegetSelectorQName()Gets the selector name.SelectorImpl[]getSelectors()java.lang.StringtoString()
-
-
-
Method Detail
-
getNodeTypeQName
public Name getNodeTypeQName()
Gets the name of the required node type.- Returns:
- the node type name; non-null
-
getSelectorQName
public Name getSelectorQName()
Gets the selector name.A selector's name can be used elsewhere in the query to identify the selector.
- Returns:
- the selector name; non-null
-
getSelectors
public SelectorImpl[] getSelectors()
- Specified by:
getSelectorsin classSourceImpl- Returns:
- the selectors that are contained in this source.
-
getNodeTypeName
public java.lang.String getNodeTypeName()
Gets the name of the required node type.- Specified by:
getNodeTypeNamein interfacejavax.jcr.query.qom.Selector- Returns:
- the node type name; non-null
-
getSelectorName
public java.lang.String getSelectorName()
Gets the selector name.A selector's name can be used elsewhere in the query to identify the selector.
- Specified by:
getSelectorNamein interfacejavax.jcr.query.qom.Selector- Returns:
- the selector name; non-null
-
accept
public java.lang.Object accept(QOMTreeVisitor visitor, java.lang.Object data) throws java.lang.Exception
Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.- Specified by:
acceptin classAbstractQOMNode- Parameters:
visitor- the visitor.data- user defined data, which is passed to the visit method.- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-