edu.iris.dmc.criteria
Class RespCriteria

java.lang.Object
  extended by edu.iris.dmc.criteria.RespCriteria
All Implemented Interfaces:
Criteria

public class RespCriteria
extends Object
implements Criteria

RespCriteria is a simple criteria builder to retrieve Resp data


Constructor Summary
RespCriteria()
           
 
Method Summary
 void reset()
          Will reset the criteria object to its defaults clearing all other properties.
 RespCriteria setChannel(String channel)
          Add channel restriction to constrain the result.
 RespCriteria setEndTime(Date endTime)
          Set location restriction to constrain the result.
 RespCriteria setLocation(String location)
          Set location restriction to constrain the result.
 RespCriteria setNetwork(String netCode)
          Add network restriction to constrain the result.
 RespCriteria setStartTime(Date startTime)
          Set location restriction to constrain the result.
 RespCriteria setStation(String staCode)
          Add station restriction to constrain the result.
 List<String> toUrlParams()
          Constructs url's parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RespCriteria

public RespCriteria()
Method Detail

toUrlParams

public List<String> toUrlParams()
                         throws CriteriaException
Description copied from interface: Criteria
Constructs url's parameters

Specified by:
toUrlParams in interface Criteria
Returns:
Throws:
CriteriaException

setStation

public RespCriteria setStation(String staCode)
Add station restriction to constrain the result. Wild card (* ?) accepted. This method can be chained.

Parameters:
staCode -
Returns:

setNetwork

public RespCriteria setNetwork(String netCode)
Add network restriction to constrain the result. Wild card (* ?) accepted. This method can be chained.

Parameters:
netCode -
Returns:

setChannel

public RespCriteria setChannel(String channel)
Add channel restriction to constrain the result. Wild card (* ?) accepted. This method can be chained.

Parameters:
channel -
Returns:

setLocation

public RespCriteria setLocation(String location)
Set location restriction to constrain the result. Wild card (* ?) accepted. This method can be chained.

Parameters:
location -
Returns:

setStartTime

public RespCriteria setStartTime(Date startTime)
Set location restriction to constrain the result. Wild card (* ?) accepted. This method can be chained.

Parameters:
location -
Returns:

setEndTime

public RespCriteria setEndTime(Date endTime)
Set location restriction to constrain the result. Wild card (* ?) accepted. This method can be chained.

Parameters:
location -
Returns:

reset

public void reset()
Will reset the criteria object to its defaults clearing all other properties.

Specified by:
reset in interface Criteria


Copyright © 2013. All Rights Reserved.