|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.connector.basefiletransfer.net.ClientPolarisedFilter
public class ClientPolarisedFilter
Utility class to hold and apply an ClientFilter and return
results via a public applyFilter() method. This class allows
one to polarise the list of results returned by negating or accepting the
result of the ClientFilter.match() call.
For example:
If one applies the ClientDirectoryFilter on a list of
ClientListEntry objects, the filtered list will by default
contain all the matched entries which are directories. If the opposite is
required, then this class can be used with negative polarity (i.e. set to
polarity = false to return everything but the directories.
| Field Summary | |
|---|---|
ClientFilter |
filter
client filter |
boolean |
polarity
Polartiy flag |
| Constructor Summary | |
|---|---|
ClientPolarisedFilter(ClientFilter filter,
boolean polarity)
Default constructor |
|
| Method Summary | |
|---|---|
java.util.List<ClientListEntry> |
applyFilter(java.util.List<ClientListEntry> list)
Applies the ClientFilter on the
List<ClientListEntry> and return the resulting
polarised filtered list. |
ClientFilter |
getFilter()
|
boolean |
isPolarity()
|
void |
setFilter(ClientFilter filter)
|
void |
setPolarity(boolean polarity)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ClientFilter filter
public boolean polarity
| Constructor Detail |
|---|
public ClientPolarisedFilter(ClientFilter filter,
boolean polarity)
filter - The relative ClientFilter to applypolarity - false to negate the filter results when
the filter is applied; true otherwise.| Method Detail |
|---|
public java.util.List<ClientListEntry> applyFilter(java.util.List<ClientListEntry> list)
ClientFilter on the
List<ClientListEntry> and return the resulting
polarised filtered list.
list -
List<ClientListEntry>.public ClientFilter getFilter()
public void setFilter(ClientFilter filter)
filter - the filter to setpublic boolean isPolarity()
public void setPolarity(boolean polarity)
polarity - the polarisation to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||