fr.cnes.sitools.properties
Class AbstractPropertyFilter

java.lang.Object
  extended by fr.cnes.sitools.properties.AbstractPropertyFilter
Direct Known Subclasses:
DateBetweenPropertyFilter, NumericBetweenPropertyFilter, NumericPropertyFilter, TextFieldPropertyFilter

public abstract class AbstractPropertyFilter
extends java.lang.Object

Abstract class for Filter on property

Author:
m.gond

Field Summary
static int PROPERTY
          The index of COLUMN
static java.lang.String TEMPLATE_PARAM
          The TEMPLATE_PARAM
static int TYPE
          The index of COLUMN
static int VALUES
          The index of Values
 
Constructor Summary
AbstractPropertyFilter()
           
 
Method Summary
 SitoolsProperty getProperty(java.lang.String propertyName, java.util.List<SitoolsProperty> properties)
          Get a SitoolsProperty for a given propertyName in the given properties list
abstract  boolean match(org.restlet.Request request, org.restlet.Context context)
          Return true if the properties contained in the Context, matches the request parameters false otherwise
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final int TYPE
The index of COLUMN

See Also:
Constant Field Values

PROPERTY

public static final int PROPERTY
The index of COLUMN

See Also:
Constant Field Values

VALUES

public static final int VALUES
The index of Values

See Also:
Constant Field Values

TEMPLATE_PARAM

public static final java.lang.String TEMPLATE_PARAM
The TEMPLATE_PARAM

See Also:
Constant Field Values
Constructor Detail

AbstractPropertyFilter

public AbstractPropertyFilter()
Method Detail

match

public abstract boolean match(org.restlet.Request request,
                              org.restlet.Context context)
Return true if the properties contained in the Context, matches the request parameters false otherwise

Parameters:
request - The Request containing the request parameters
context - the Context containing the properties (getContext().getAttributes().get(ContextAttributes.LIST_SITOOLS_PROPERTIES)
Returns:
true if the properties contains in the Context, matches the request parameters false otherwise

getProperty

public SitoolsProperty getProperty(java.lang.String propertyName,
                                   java.util.List<SitoolsProperty> properties)
Get a SitoolsProperty for a given propertyName in the given properties list

Parameters:
propertyName - the name of the property
properties - the List of SitoolsProperty
Returns:
the DataSetProperty with the given name or null if it is not found


Copyright © 2010-2013 CNES. All Rights Reserved.