com.sas.dataselectors.filters
Class DefaultFilterLogicList

com.sas.dataselectors.filters.DefaultFilterLogicList
All Implemented Interfaces:
FilterLogicListInterface, java.lang.Iterable, java.util.Collection, java.util.List
Direct Known Subclasses:
AbstractSimpleLogicListAdapterBase

public class DefaultFilterLogicList
implements FilterLogicListInterface, java.util.List

This implements a bare bones list of filter nodes using DefaultFilterLogicTestNode All nodes added MUST be non-null and implement FilterLogicTestNodeInterface


Constructor Summary
DefaultFilterLogicList()
           
DefaultFilterLogicList(java.lang.String label)
           
 
Method Summary
 void add(int index, java.lang.Object element)
          Defined in java.util.List
 boolean add(java.lang.Object element)
          Defined in java.util.List
 boolean addAll(java.util.Collection collection)
          Defined in java.util.List
 boolean addAll(int index, java.util.Collection collection)
          Defined in java.util.List
 void clear()
           
 boolean contains(java.lang.Object element)
           
 boolean containsAll(java.util.Collection collection)
           
 boolean equals(java.lang.Object object)
           
 java.lang.Object get(int index)
           
 java.util.List getFilterList()
          Returns the list of filter test nodes.
 java.lang.String getFilterListDescription()
          Returns the description for this logic list.
 java.lang.String getFilterListLabel()
          Returns the label for this logic list.
 int hashCode()
           
 int indexOf(java.lang.Object object)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 int lastIndexOf(java.lang.Object object)
           
 java.util.ListIterator listIterator()
           
 java.util.ListIterator listIterator(int index)
           
 java.lang.Object remove(int index)
           
 boolean remove(java.lang.Object object)
           
 boolean removeAll(java.util.Collection collection)
           
 boolean retainAll(java.util.Collection p1)
           
 java.lang.Object set(int index, java.lang.Object element)
          Defined in java.util.List
 void setFilterList(java.util.List values)
           
 void setFilterListDescription(java.lang.String value)
           
 void setFilterListLabel(java.lang.String value)
           
 int size()
           
 java.util.List subList(int startIndex, int endIndex)
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] p1)
           
 java.lang.String toString()
           
 

Constructor Detail

DefaultFilterLogicList

public DefaultFilterLogicList()

DefaultFilterLogicList

public DefaultFilterLogicList(java.lang.String label)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getFilterListLabel

public java.lang.String getFilterListLabel()
Description copied from interface: FilterLogicListInterface
Returns the label for this logic list.

Specified by:
getFilterListLabel in interface FilterLogicListInterface
Returns:
the label for this list

setFilterListLabel

public void setFilterListLabel(java.lang.String value)

getFilterListDescription

public java.lang.String getFilterListDescription()
Description copied from interface: FilterLogicListInterface
Returns the description for this logic list.

Specified by:
getFilterListDescription in interface FilterLogicListInterface
Returns:
the description for this list

setFilterListDescription

public void setFilterListDescription(java.lang.String value)

getFilterList

public java.util.List getFilterList()
Description copied from interface: FilterLogicListInterface
Returns the list of filter test nodes.

Specified by:
getFilterList in interface FilterLogicListInterface
Returns:
the list of FilterLogicTestNodeInterface objects

setFilterList

public void setFilterList(java.util.List values)

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Defined in java.util.List

Specified by:
set in interface java.util.List
Parameters:
index -
element -
Returns:
java.util.List

add

public void add(int index,
                java.lang.Object element)
Defined in java.util.List

Specified by:
add in interface java.util.List
Parameters:
index -
element - (must implement FilterLogicTestNodeInterface )

add

public boolean add(java.lang.Object element)
Defined in java.util.List

Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.List
Parameters:
element - (must implement FilterLogicTestNodeInterface )
Returns:
boolean

addAll

public boolean addAll(java.util.Collection collection)
Defined in java.util.List

Specified by:
addAll in interface java.util.Collection
Specified by:
addAll in interface java.util.List
Parameters:
collection - ( of FilterLogicTestNodeInterface )
Returns:
boolean

addAll

public boolean addAll(int index,
                      java.util.Collection collection)
Defined in java.util.List

Specified by:
addAll in interface java.util.List
Parameters:
index -
collection - ( of FilterLogicTestNodeInterface )
Returns:
boolean

containsAll

public boolean containsAll(java.util.Collection collection)
Specified by:
containsAll in interface java.util.Collection
Specified by:
containsAll in interface java.util.List

removeAll

public boolean removeAll(java.util.Collection collection)
Specified by:
removeAll in interface java.util.Collection
Specified by:
removeAll in interface java.util.List

subList

public java.util.List subList(int startIndex,
                              int endIndex)
Specified by:
subList in interface java.util.List

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in interface java.util.List

listIterator

public java.util.ListIterator listIterator()
Specified by:
listIterator in interface java.util.List

listIterator

public java.util.ListIterator listIterator(int index)
Specified by:
listIterator in interface java.util.List

get

public java.lang.Object get(int index)
Specified by:
get in interface java.util.List

remove

public boolean remove(java.lang.Object object)
Specified by:
remove in interface java.util.Collection
Specified by:
remove in interface java.util.List

contains

public boolean contains(java.lang.Object element)
Specified by:
contains in interface java.util.Collection
Specified by:
contains in interface java.util.List

indexOf

public int indexOf(java.lang.Object object)
Specified by:
indexOf in interface java.util.List

equals

public boolean equals(java.lang.Object object)
Specified by:
equals in interface java.util.Collection
Specified by:
equals in interface java.util.List
Overrides:
equals in class java.lang.Object

clear

public void clear()
Specified by:
clear in interface java.util.Collection
Specified by:
clear in interface java.util.List

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection
Specified by:
hashCode in interface java.util.List
Overrides:
hashCode in class java.lang.Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection
Specified by:
isEmpty in interface java.util.List

lastIndexOf

public int lastIndexOf(java.lang.Object object)
Specified by:
lastIndexOf in interface java.util.List

remove

public java.lang.Object remove(int index)
Specified by:
remove in interface java.util.List

retainAll

public boolean retainAll(java.util.Collection p1)
Specified by:
retainAll in interface java.util.Collection
Specified by:
retainAll in interface java.util.List

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.List

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.List

toArray

public java.lang.Object[] toArray(java.lang.Object[] p1)
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.List



Copyright © 2009 SAS Institute Inc. All Rights Reserved.