|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList com.endeca.navigation.analytics.SelectList
public class SelectList
A SelectList
is a list of Select
expressions.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
SelectList()
Constructs a new, empy SelectList . |
Method Summary | |
---|---|
void |
add(int index,
Object obj)
Inserts a Select object at position index . |
Object |
get(int index)
Gets the Select object at position index . |
Object |
remove(int index)
Removes the Select element at the specified position in this list. |
Object |
set(int index,
Object obj)
Replaces the Select object at position index
with the the Select object specified by obj . |
int |
size()
Returns the number of Select expressions in this SelectList . |
String |
toString()
Returns the string form of this SelectList . |
String |
toWire()
Returns the wire format of this SelectList . |
void |
validateSyntax()
Validates the syntax of this SelectList . |
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 SelectList()
SelectList
.
Method Detail |
---|
public Object get(int index)
Select
object at position index
.
get
in interface List
get
in class AbstractList
index
- offset of the desired Select
object.
Select
object at position index
.
IndexOutOfBoundsException
- if index
is out of range.public int size()
Select
expressions in this SelectList
.
size
in interface Collection
size
in interface List
size
in class AbstractCollection
Select
elements in the list.public Object set(int index, Object obj)
Select
object at position index
with the the Select
object specified by obj
.
set
in interface List
set
in class AbstractList
index
- offset of the Select
object to replace.obj
- the Select
object to store.
Select
object previously at position index
.
IndexOutOfBoundsException
- if index
is out of range.
IllegalArgumentException
- if obj
is not a Select
.public void add(int index, Object obj)
Select
object at position index
.
Shifts the Select
element currently at that position (if any) and
any subsequent Select
elements to the right (adds one to their indices).
add
in interface List
add
in class AbstractList
index
- offset at which the Select
is to be inserted.obj
- the Select
to be inserted.
IndexOutOfBoundsException
- if index
is out of range.
IllegalArgumentException
- if obj
is not a Select
.public Object remove(int index)
Select
element at the specified position in this list.
Shifts any subsequent Select
elements to the left (subtracts one from
their indices). Returns the Select
element that was removed from the list.
remove
in interface List
remove
in class AbstractList
index
- offset of the Select
to be removed.
Select
element previously at position index
.
IndexOutOfBoundsException
- if index
is out of range.public String toString()
SelectList
. These are of the format:
SELECT expression1 AS derived-prop-name1, expression2 AS derived-prop-name2...where expression is the string form of an
Expr
expression
and derived-prop-name is the name of the derived property that will
be produced.
For example:
SELECT COUNT(TransId) AS NumTrans
is returned if the derived property name is "NumTrans" and the
expression uses the COUNT function to compute the number of transactions by the "TransId" field.
toString
in interface QueryNode
toString
in class AbstractCollection
SelectList
in the specified format.public String toWire()
SelectList
. This method is not
intended for public use because the wire format is subject to change.
toWire
in interface QueryNode
SelectList
.public void validateSyntax() throws SyntaxException
SelectList
.
A SelectList
is valid if it is non-empty and all its
Select
elements are themselves valid.
validateSyntax
in interface QueryNode
SyntaxException
- if the syntax requirements are not satisfied.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |