dsto.dfc.swing.text.selection
Class PatternSelector.SelectAllSelector
java.lang.Object
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
PatternSelector.SelectAllSelector
public PatternSelector.SelectAllSelector()
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