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

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
      extended by org.apache.jackrabbit.spi.commons.query.qom.SourceImpl
          extended by org.apache.jackrabbit.spi.commons.query.qom.SelectorImpl
All Implemented Interfaces:
Selector, Source

public class SelectorImpl
extends SourceImpl
implements Selector

SelectorImpl...


Field Summary
 
Fields inherited from class org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
resolver
 
Method Summary
 Object accept(QOMTreeVisitor visitor, Object data)
          Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
 String getNodeTypeName()
          Gets the name of the required node type.
 Name getNodeTypeQName()
          Gets the name of the required node type.
 String getSelectorName()
          Gets the selector name.
 Name getSelectorQName()
          Gets the selector name.
 SelectorImpl[] getSelectors()
          
 String toString()
           
 
Methods inherited from class org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
getJCRName, getJCRPath, protect, quote, quote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:
getSelectors in class SourceImpl
Returns:
the selectors that are contained in this source.

getNodeTypeName

public String getNodeTypeName()
Gets the name of the required node type.

Specified by:
getNodeTypeName in interface Selector
Returns:
the node type name; non-null

getSelectorName

public String getSelectorName()
Gets the selector name.

A selector's name can be used elsewhere in the query to identify the selector.

Specified by:
getSelectorName in interface Selector
Returns:
the selector name; non-null

accept

public 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.

Specified by:
accept in class AbstractQOMNode
Parameters:
visitor - the visitor.
data - user defined data, which is passed to the visit method.
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.