|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
com.endeca.navigation.analytics.FilterOr
public class FilterOr
A FilterOr is a Filter implementing a Boolean
n-way OR operation. The filter evaluates to true for a given record
if any of its child Filters evaluate to true for that record.
This type of filter provides a List interface, where the List elements
represent child Filter operations.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
FilterOr()
Creates a new FilterOr with no child
sub-filters (no Filter elements). |
|
| Method Summary | |
|---|---|
void |
add(int index,
Object obj)
Inserts a Filter object at position index. |
Object |
get(int index)
Gets the Filter object at position index. |
Object |
remove(int index)
Removes the Filter element at the specified position in this FilterOr. |
Object |
set(int index,
Object obj)
Replaces the Filter object at position index
with the the Filter object specified by obj. |
int |
size()
Returns the number of Filter objects in this FilterOr. |
String |
toString()
Returns the string form of this FilterOr. |
String |
toWire()
Returns the wire format of this FilterOr. |
void |
validateSyntax()
Validates the syntax of this FilterOr. |
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray |
| Constructor Detail |
|---|
public FilterOr()
FilterOr with no child
sub-filters (no Filter elements).
| Method Detail |
|---|
public Object get(int index)
Filter object at position index.
get in interface Listget in class AbstractListindex - offset of the desired Filter object.
Filter object at position index.
IndexOutOfBoundsException - if index is out of range.public int size()
Filter objects in this FilterOr.
size in interface Collectionsize in interface Listsize in class AbstractCollectionFilter objects in the list.
public Object set(int index,
Object obj)
Filter object at position index
with the the Filter object specified by obj.
set in interface Listset in class AbstractListindex - offset of the Filter object to replace.obj - the Filter object to store.
Filter object previously at position index.
IndexOutOfBoundsException - if index is out of range.
IllegalArgumentException - if obj is not a Filter.
public void add(int index,
Object obj)
Filter object at position index.
Shifts the Filter element currently at that position (if any) and
any subsequent Filter elements to the right (adds one to their indices).
add in interface Listadd in class AbstractListindex - offset at which the Filter is to be inserted.obj - the Filter to be inserted.
IndexOutOfBoundsException - if index is out of range.
IllegalArgumentException - if obj is not a Filter.public Object remove(int index)
Filter element at the specified position in this FilterOr.
Shifts any subsequent Filter elements to the left (subtracts one from
their indices). Returns the Filter that was removed from the list.
remove in interface Listremove in class AbstractListindex - offset of the Filter to be removed.
Filter element previously at position index.
IndexOutOfBoundsException - if index is out of range.public String toString()
FilterOr. These are of the format:
(filter1 OR filter2 ...)
toString in interface QueryNodetoString in class AbstractCollectionFilterOr in the specified format.public String toWire()
FilterOr. This method is not
intended for public use because the wire format is subject to change.
toWire in interface QueryNodeFilterOr.
public void validateSyntax()
throws SyntaxException
FilterOr.
A FilterOr is valid if the number of
sub-filters (Filter elements) is greater than
zero and each sub-filter is itself valid.
validateSyntax in interface QueryNodeSyntaxException - if the syntax requirements are not satisfied.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||