dsto.dfc.swing.text.selection
Class PatternSelector.SelectAllSelector

java.lang.Object
  extended by dsto.dfc.swing.text.selection.PatternSelector.SelectAllSelector
All Implemented Interfaces:
Convertable, PatternSelector, Selector, ValueConverter, Serializable
Enclosing interface:
PatternSelector

public static final class PatternSelector.SelectAllSelector
extends Object
implements PatternSelector, ValueConverter, Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface dsto.dfc.swing.text.selection.PatternSelector
PatternSelector.SelectAllSelector
 
Field Summary
 
Fields inherited from interface dsto.dfc.swing.text.selection.PatternSelector
SELECT_ALL
 
Constructor Summary
PatternSelector.SelectAllSelector()
           
 
Method Summary
 Object convertTo(Object value, Class form)
          Convert a value to a given class.
 boolean equals(Object o)
           
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatternSelector.SelectAllSelector

public PatternSelector.SelectAllSelector()
Method Detail

matches

public boolean matches(Object value)
Description copied from interface: PatternSelector
True if this pattern selector matches the given value.

Specified by:
matches in interface PatternSelector
Specified by:
matches in interface Selector

getConverter

public ValueConverter getConverter()
Description copied from interface: PatternSelector
Return a converter that at least supports conversion to and from String.

Specified by:
getConverter in interface Convertable
Specified by:
getConverter in interface PatternSelector

convertTo

public Object convertTo(Object value,
                        Class form)
                 throws IllegalFormatException
Description copied from interface: ValueConverter
Convert a value to a given class.

Specified by:
convertTo in interface ValueConverter
Parameters:
value - The value to convert.
form - The new class.
Returns:
A new instance of form containing the converted value.
Throws:
IllegalFormatException - if conversion was not possible.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

setExpression

public void setExpression(String expression)
                   throws IllegalFormatException
Description copied from interface: PatternSelector
Set the value of the pattern used to match against.

Specified by:
setExpression in interface PatternSelector
Parameters:
expression - String value
Throws:
IllegalFormatException

getExpression

public String getExpression()
Specified by:
getExpression in interface PatternSelector

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 Commonwealth of Australia