edu.iris.dmc.criteria
Class SacpzCriteria

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

public class SacpzCriteria
extends Object
implements Criteria

StationCriteria is a simple criteria builder to retrieve networks


Constructor Summary
SacpzCriteria()
           
 
Method Summary
 SacpzCriteria addChannel(String channel)
          Add channel restriction to constrain the result.
 SacpzCriteria addLocation(String location)
          Add location restriction to constrain the result.
 SacpzCriteria addNetwork(String netCode)
          Add network restriction to constrain the result.
 SacpzCriteria addStation(String staCode)
          Add station restriction to constrain the result.
 String[] getChannels()
           
 Date getEndTime()
           
 String[] getLocations()
           
 String[] getNetworks()
           
 Date getStartTime()
           
 String[] getStations()
           
 Date getTime()
           
 void reset()
          Will reset the criteria object to its defaults clearing all other properties.
 SacpzCriteria setEndTime(Date end)
           
 SacpzCriteria setStartTime(Date start)
           
 SacpzCriteria setTime(Date time)
           
 String toString()
           
 List<String> toUrlParams()
          Constructs url's parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SacpzCriteria

public SacpzCriteria()
Method Detail

setStartTime

public SacpzCriteria setStartTime(Date start)

setTime

public SacpzCriteria setTime(Date time)

setEndTime

public SacpzCriteria setEndTime(Date end)

getStartTime

public Date getStartTime()

getTime

public Date getTime()

getEndTime

public Date getEndTime()

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

addStation

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

Parameters:
staCode -
Returns:

addNetwork

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

Parameters:
netCode -
Returns:

addChannel

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

Parameters:
channel -
Returns:

addLocation

public SacpzCriteria addLocation(String location)
Add 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

getNetworks

public String[] getNetworks()

getStations

public String[] getStations()

getChannels

public String[] getChannels()

getLocations

public String[] getLocations()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.