dsto.dfc.swing.text.selection
Interface PatternSelector

All Superinterfaces:
Convertable, Selector
All Known Implementing Classes:
BooleanSelector, DateSelector, NumberSelector, PatternSelector.SelectAllSelector, RegexSelector, StringContainsSelector, StringSelector

public interface PatternSelector
extends Selector, Convertable

Selects values based on a pattern.

Version:
$Revision$

Nested Class Summary
static class PatternSelector.SelectAllSelector
           
 
Field Summary
static PatternSelector.SelectAllSelector SELECT_ALL
           
 
Method Summary
 ValueConverter getConverter()
          Return a converter that at least supports conversion to and from String.
 String getExpression()
           
 boolean matches(Object value)
          True if this pattern selector matches the given value.
 void setExpression(String expression)
          Set the value of the pattern used to match against.
 

Field Detail

SELECT_ALL

static final PatternSelector.SelectAllSelector SELECT_ALL
Method Detail

matches

boolean matches(Object value)
True if this pattern selector matches the given value.

Specified by:
matches in interface Selector

setExpression

void setExpression(String expression)
                   throws IllegalFormatException
Set the value of the pattern used to match against.

Parameters:
expression - String value
Throws:
IllegalFormatException

getExpression

String getExpression()

getConverter

ValueConverter getConverter()
Return a converter that at least supports conversion to and from String.

Specified by:
getConverter in interface Convertable


Copyright © 2008 Commonwealth of Australia