com.raritantechnologies.rql.map
Class RQLMapBuilder
java.lang.Object
com.raritantechnologies.rql.map.RQLMapBuilder
- All Implemented Interfaces:
- IConfigurable, IQueryBuilder
- public class RQLMapBuilder
- extends java.lang.Object
- implements IQueryBuilder
Builds an RQL Map query from a set of request parameters.
XML Configuration Template:
<QueryBuilder class="com.raritantechnologies.rql.map.RQLMapBuilder" >
<!-- Order of Boolean Operators should be inverted from the order of the advanced form ... -->
<BooleanOperator param="[ name of request parameter ]"
operator="[ static boolean operator - AND | OR | NOT ]"
operatorParam="[ Use this for selectable operator - request parameter that has boolean operator (AND | OR | NOT )]" >
<!-- contains two child objects a nested BooleanOperator or a Field -->
<Field param="[ name of request parameter ]" >
field="[ query field this parameter maps to ] ">
operator="[ name of request parameter that has within Field Operator ( ANY | ALL | NONE | GT | LT | EQ ) ]" />
</Field>
<!-- Another Field tag or a BooleanOperator -->
</BooleanOperator>
</QueryBuilder>
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RQLMapBuilder
public RQLMapBuilder()
buildQuery
public OrderedMap buildQuery(OrderedMap queryInput)
buildQuery
public OrderedMap buildQuery(RaritanPageContext pageContext)
- Specified by:
buildQuery in interface IQueryBuilder
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable