public class ComplexSelection extends Selection
ComplexSelection consists of other (atomic or complex)
selections and combines them either conjunctively (AND) or disjunctively
(OR).| Modifier and Type | Class and Description |
|---|---|
static class |
ComplexSelection.Type
Enumerates the possible types of complex selections.
|
| Constructor and Description |
|---|
ComplexSelection(ComplexSelection.Type type)
Constructs a new (and empty)
ComplexSelection of the given
type. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubSelection(Selection selection)
Appends the given selection to this complex selection.
|
Selection |
getSubSelectionAt(int index)
Returns the sub-selection at the given index.
|
int |
getSubSelectionCount()
Returns the number of sub-selections contained in this complex selection.
|
ComplexSelection.Type |
getType()
Returns the type of this
ComplexSelection. |
public ComplexSelection(ComplexSelection.Type type)
ComplexSelection of the given
type.type - the type of the complex selectionpublic ComplexSelection.Type getType()
ComplexSelection.ComplexSelectionpublic int getSubSelectionCount()
public Selection getSubSelectionAt(int index)
index - the index of the sub-selection to be returnedpublic void addSubSelection(Selection selection)
selection - the (atomic or complex) selection to be appended