org.apache.oodt.profile.handlers.lightweight
Class SearchableRangedProfileElement

java.lang.Object
  extended by org.apache.oodt.profile.ProfileElement
      extended by org.apache.oodt.profile.RangedProfileElement
          extended by org.apache.oodt.profile.handlers.lightweight.SearchableRangedProfileElement
All Implemented Interfaces:
Serializable, Cloneable, Comparable, Documentable

public class SearchableRangedProfileElement
extends RangedProfileElement

Searchable profile element with a range of valid values.

Version:
$Revision: 1.1.1.1 $
Author:
Kelly
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.oodt.profile.RangedProfileElement
max, min
 
Fields inherited from class org.apache.oodt.profile.ProfileElement
comments, desc, id, maxOccurrence, name, obligation, profile, synonyms, type, unit
 
Constructor Summary
SearchableRangedProfileElement(SearchableProfile profile, String name, String id, String desc, String type, String unit, List synonyms, boolean obligation, int maxOccurrence, String comment, String min, String max)
           
 
Method Summary
 org.apache.oodt.profile.handlers.lightweight.Result result(String value, String operator)
          Produce a search result.
 
Methods inherited from class org.apache.oodt.profile.RangedProfileElement
addElementSpecificProperties, addValues, getMaxValue, getMinValue, getValues, isEnumerated, setMaxValue, setMinValue
 
Methods inherited from class org.apache.oodt.profile.ProfileElement
clone, compareTo, createProfElementDocument, createProfileElement, elements, equals, getComments, getDescription, getID, getMaxOccurrence, getName, getProfile, getSynonyms, getType, getUnit, hashCode, isObligatory, profiles, setComments, setDescription, setID, setMaxOccurrence, setName, setObligation, setProfile, setType, setUnit, toString, toXML, toXMLWithoutValues
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchableRangedProfileElement

public SearchableRangedProfileElement(SearchableProfile profile,
                                      String name,
                                      String id,
                                      String desc,
                                      String type,
                                      String unit,
                                      List synonyms,
                                      boolean obligation,
                                      int maxOccurrence,
                                      String comment,
                                      String min,
                                      String max)
Method Detail

result

public org.apache.oodt.profile.handlers.lightweight.Result result(String value,
                                                                  String operator)
Produce a search result.

Parameters:
value - The desired value.
operator - What operator to use for comparison.
Returns:
A search result.


Copyright © 1999-2012 Apache OODT. All Rights Reserved.