Package ucar.unidata.data
Class DataOperand
java.lang.Object
ucar.unidata.data.DataOperand
This class holds a name/value pair that represents an operand for the
 DerivedDataChoice
- Version:
- $Revision: 1.16 $
- Author:
- IDV development team
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDataOperand(String name) Create a new DataOperand with null dataDataOperand(String name, Object data) Create a new DataOperandDataOperand(String name, String description, List categories, boolean multiple) ctor
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCheck to see if the object in question is equal to this.Get the list ofDataCategorys that are defined by the categories propertygetData()Get the data.DOes this operand have a datasource propertyGet the description from the propertiesgetLabel()Get the name used for the label in the guibooleanGet the multiple propertygetName()Get the name.Get just the param name, strip off the categoriesGet the pattern from the propertiesgetProperty(String name) Get the named propertyGet the list of time (Integer) indices defined with the times propertyGet the default user valueinthashCode()Return the hashcode for this DataOperand.booleanisBound()See if this a bound operand or not (has data)booleanIs this operand persistentbooleanisUser()Is this operand an end user defined valuestatic voidTestRemove all of the special IDV characters in the given jython operand.voidputCategories(List categories) Set the categoriesvoidputDescription(String desc) Put the description in the propertiesvoidputMultiple(boolean b) Put the multiple propertyvoidputPattern(String pattern) Put the pattern into the propertiesvoidSet the data.voidSet the name.toString()Return a string representation of this DataOperand.
- 
Field Details- 
PROP_LEVELThe level property- See Also:
 
 
- 
- 
Constructor Details- 
DataOperandCreate a new DataOperand with null data- Parameters:
- name- name for this object
 
- 
DataOperandCreate a new DataOperand- Parameters:
- name- name for this object
- data- associated data
 
- 
DataOperandctor- Parameters:
- name- name
- description- description
- categories- categories
- multiple- supports multiples
 
 
- 
- 
Method Details- 
putDescriptionPut the description in the properties- Parameters:
- desc- description
 
- 
getDescriptionGet the description from the properties- Returns:
- description
 
- 
putPatternPut the pattern into the properties- Parameters:
- pattern- the pattern
 
- 
getPatternGet the pattern from the properties- Returns:
- the pattern
 
- 
equalsCheck to see if the object in question is equal to this.
- 
hashCodepublic int hashCode()Return the hashcode for this DataOperand.
- 
toStringReturn a string representation of this DataOperand.
- 
putCategoriesSet the categories- Parameters:
- categories- catgegories
 
- 
getCategoriesGet the list ofDataCategorys that are defined by the categories property- Returns:
- List of data categories or null if none defined
 
- 
setNameSet the name. (Used by XML persistence)- Parameters:
- value- name for this object
 
- 
getNameGet the name. (Used by XML persistence)- Returns:
- this object's name
 
- 
setDataSet the data. (Used by XML persistence)- Parameters:
- value- the data
 
- 
getDataGet the data. (Used by XML persistence)- Returns:
- the data
 
- 
isBoundpublic boolean isBound()See if this a bound operand or not (has data)- Returns:
- true if data is not null
 
- 
putMultiplepublic void putMultiple(boolean b) Put the multiple property- Parameters:
- b- multiple
 
- 
getMultiplepublic boolean getMultiple()Get the multiple property- Returns:
- multiple
 
- 
isPersistentpublic boolean isPersistent()Is this operand persistent- Returns:
- is persistent
 
- 
isUserpublic boolean isUser()Is this operand an end user defined value- Returns:
- Is define dby the user
 
- 
getDataSourceNameDOes this operand have a datasource property- Returns:
- The data source property
 
- 
getUserDefaultGet the default user value- Returns:
- The default for user specified values
 
- 
getPropertyGet the named property- Parameters:
- name- property name
- Returns:
- The property
 
- 
getParamNameGet just the param name, strip off the categories- Returns:
- The param name
 
- 
getLabelGet the name used for the label in the gui- Returns:
- The label.
 
- 
makeLegalJythonRemove all of the special IDV characters in the given jython operand.- Returns:
- cleaned up operand
 
- 
getTimeIndicesGet the list of time (Integer) indices defined with the times property- Returns:
- Listof time indices or null
 
- 
mainTest- Parameters:
- argv- Cmd line args
 
 
-