org.umber.bellows.query
Class DefaultQueryNode

java.lang.Object
  extended byorg.umber.bellows.query.QueryNodeBase
      extended byorg.umber.bellows.query.DefaultQueryNode
All Implemented Interfaces:
IQueryNode

public class DefaultQueryNode
extends QueryNodeBase

The default QueryNode parsing implementation. Acts as the reference implementation of the Bellows Query Language (BQL). Alternate query languages should replace DefaultQueryNode with a different QueryNode implementation when creating a DatumQuery instance.

Author:
jsheets

Constructor Summary
DefaultQueryNode(java.lang.String text)
          Creates a new instance of DefaultQueryNode.
 
Method Summary
protected  INodeProcessor createNodeProcessor(java.lang.String filterText)
          Creates a filter object based on the text of the given filter.
 boolean isValid()
          Checks to see if the query syntax is correct for this node.
 
Methods inherited from class org.umber.bellows.query.QueryNodeBase
getFilters, getFilterText, getName, getText, hasFilter, isAttribute, isBacktrack, isMultiCard, isWildCard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultQueryNode

public DefaultQueryNode(java.lang.String text)
Creates a new instance of DefaultQueryNode.

Parameters:
text - raw text for this node
Method Detail

createNodeProcessor

protected INodeProcessor createNodeProcessor(java.lang.String filterText)
Description copied from class: QueryNodeBase
Creates a filter object based on the text of the given filter.

Specified by:
createNodeProcessor in class QueryNodeBase
Parameters:
filterText - text for a single filter
Returns:
filter processor

isValid

public boolean isValid()
Checks to see if the query syntax is correct for this node. If a node is not valid, all the other methods in this interface should all return false (or PassThroughFilter in the case of getFilter()).

Returns:
true if the node text syntax is legal, or false if not legal