com.gmail.thejcwk.semantics.gui.wrappers
Class DefaultFilterWrapper

java.lang.Object
  extended by com.gmail.thejcwk.semantics.gui.wrappers.DefaultFilterWrapper
All Implemented Interfaces:
FilterWrapper, java.io.Serializable

public class DefaultFilterWrapper
extends java.lang.Object
implements FilterWrapper, java.io.Serializable

Default implementation of a FilterWrapper.

Version:
0.1
Author:
Jan Kroeze
See Also:
FilterWrapper, Serialized Form

Constructor Summary
DefaultFilterWrapper(Filter aFilter)
          Create a new wrapper.
DefaultFilterWrapper(java.lang.String operationRepresentation, java.lang.String attrTypeRepresentation, java.lang.String value)
          Create a new wrapper using UI specific representations.
 
Method Summary
 void Create()
          Private helper constructor.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFilterWrapper

public DefaultFilterWrapper(Filter aFilter)
Create a new wrapper.

Parameters:
aFilter - The filter to be contained in this wrapper.

DefaultFilterWrapper

public DefaultFilterWrapper(java.lang.String operationRepresentation,
                            java.lang.String attrTypeRepresentation,
                            java.lang.String value)
Create a new wrapper using UI specific representations.

Parameters:
operationRepresentation -
attrTypeRepresentation -
value -
Method Detail

Create

public void Create()
Private helper constructor.


getFilter

public Filter getFilter()
Description copied from interface: FilterWrapper
Returns the Filter object that this class is a wrapper for.

Specified by:
getFilter in interface FilterWrapper
Returns:
A Filter object.

createFilter

public Filter createFilter(java.lang.String operationRepresentation,
                           java.lang.String attrTypeRepresentation,
                           java.lang.String value)
Description copied from interface: FilterWrapper
Creates a new Filter from a set of UI specific Strings.

Specified by:
createFilter in interface FilterWrapper
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

public java.lang.String toString()
Description copied from interface: FilterWrapper
Return a String that will be used to represent the Filter on the UI.

Specified by:
toString in interface FilterWrapper
Overrides:
toString in class java.lang.Object
Returns:
A String object.