gov.nasa.pds.registry.client.results
Class SlotFilter

java.lang.Object
  extended by gov.nasa.pds.registry.client.results.SlotFilter
All Implemented Interfaces:
ResultsFilter

public class SlotFilter
extends Object
implements ResultsFilter


Field Summary
protected  String name
           
protected  String value
           
 
Fields inherited from interface gov.nasa.pds.registry.client.results.ResultsFilter
LATEST_VERSION, VERSION_ID
 
Constructor Summary
SlotFilter(String name, String value)
           
 
Method Summary
 Object applyFilter(Object filterObject)
          Check the input "filter" (ExtrinsicObject) contains the "value" (Slot)
 Object applyFilter(RegistryClient client, Object filterObject)
          Apply the filter on the object and also pass a registry client object for potential queries to the registry
 String getName()
           
 String getValue()
           
 void setName(String name)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

value

protected String value
Constructor Detail

SlotFilter

public SlotFilter(String name,
                  String value)
           throws RegistryHandlerException
Throws:
RegistryHandlerException
Method Detail

applyFilter

public Object applyFilter(Object filterObject)
Check the input "filter" (ExtrinsicObject) contains the "value" (Slot)

Specified by:
applyFilter in interface ResultsFilter
Returns:
if object passes through filter, returns the filterObject else returns null

applyFilter

public Object applyFilter(RegistryClient client,
                          Object filterObject)
                   throws RegistryServiceException
Description copied from interface: ResultsFilter
Apply the filter on the object and also pass a registry client object for potential queries to the registry

Specified by:
applyFilter in interface ResultsFilter
Returns:
Throws:
RegistryServiceException

getName

public String getName()

setName

public void setName(String name)
             throws RegistryHandlerException
Throws:
RegistryHandlerException

getValue

public String getValue()

setValue

public void setValue(String value)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010–2014 Planetary Data System. All rights reserved.