public interface Filter extends Serializable
Modifier and Type | Method and Description |
---|---|
Condition |
createCondition()
Creates a condition in the context of current filter.
|
ActionType |
getActionType()
Gets action type (i.e.
|
List<Condition> |
getConditions()
Gets conditions from this filter as an unmodifiable list.
|
ConditionType |
getConditionType()
Gets condition type (i.e.
|
String |
getDescription()
Gets description of the filter.
|
List<DeviceAddress> |
getDeviceAddressList()
Gets device addresses of this filter in an unmodifiable list.
|
MediaType |
getMediaType()
Gets the MediaType of this filter.
|
String |
getName()
Gets the name of the filter.
|
boolean |
isActive()
Returns whether current filter is active.
|
void |
moveDeviceAddress(int indexFrom,
int indexTo)
Moves device located at indexFrom to new location, indexTo, in
the device list of this filter.
|
void |
setActionType(ActionType actionType)
Sets action type (i.e.
|
void |
setActive(boolean active)
Sets active flag of this filter.
|
void |
setConditions(List<Condition> list)
Sets a list of Condition to the filter.
|
void |
setConditionType(ConditionType conditionType)
Sets condition type (i.e.
|
void |
setDescription(String description)
Sets description of the filter.
|
void |
setDeviceAddressList(List<DeviceAddress> list)
Sets a list of device names to the filter.
|
void |
setName(String name)
Sets or modifies name of the filter.
|
void setName(String name)
name
- Name of the filter to be setString getName()
String getDescription()
void setDescription(String description)
description
- New description of the filter to be set.ConditionType getConditionType()
void setConditionType(ConditionType conditionType)
conditionType
- Condition type to be set.ActionType getActionType()
void setActionType(ActionType actionType)
actionType
- an ActionType object.boolean isActive()
void setActive(boolean active)
active
- the flag to be setList<DeviceAddress> getDeviceAddressList()
void setDeviceAddressList(List<DeviceAddress> list)
list
- A list of device address objects.List<Condition> getConditions()
void setConditions(List<Condition> list)
list
- condition list to be set.void moveDeviceAddress(int indexFrom, int indexTo)
indexFrom
- original position in the list before moving.indexTo
- new position in the list after moving.MediaType getMediaType()
Condition createCondition()
Copyright © 2006, 2017 Oracle and/or its affiliates. All rights reserved.