com.gmail.thejcwk.semantics.gui.wrappers
Interface FilterWrapper

All Known Implementing Classes:
DefaultFilterWrapper

public interface FilterWrapper

Classes implementing this interface translate between the UI representation of a Filter and the way it is implemented. Each Class will do this for a different UI.

Version:
0.1
Author:
Jan Kroeze

Method Summary
 Filter createFilter(java.lang.String operationRepresentation, java.lang.String attrTypeRepresentation, java.lang.String value)
          Creates a new Filter from a set of UI specific Strings.
 Filter getFilter()
          Returns the Filter object that this class is a wrapper for.
 java.lang.String toString()
          Return a String that will be used to represent the Filter on the UI.
 

Method Detail

getFilter

Filter getFilter()
Returns the Filter object that this class is a wrapper for.

Returns:
A Filter object.

createFilter

Filter createFilter(java.lang.String operationRepresentation,
                    java.lang.String attrTypeRepresentation,
                    java.lang.String value)
Creates a new Filter from a set of UI specific Strings.

Parameters:
operationRepresentation - The representation of the new Filter's operation in terms of the UI.
attrTypeRepresentation - The representation of the new Filter's attribute type in terms of the UI
value - The new Filter's value.
Returns:
A Filter object.

toString

java.lang.String toString()
Return a String that will be used to represent the Filter on the UI.

Overrides:
toString in class java.lang.Object
Returns:
A String object.