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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataOperand(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 Summary
Modifier 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_LEVEL
The level property- See Also:
-
-
Constructor Details
-
DataOperand
Create a new DataOperand with null data- Parameters:
name- name for this object
-
DataOperand
Create a new DataOperand- Parameters:
name- name for this objectdata- associated data
-
DataOperand
ctor- Parameters:
name- namedescription- descriptioncategories- categoriesmultiple- supports multiples
-
-
Method Details
-
putDescription
Put the description in the properties- Parameters:
desc- description
-
getDescription
Get the description from the properties- Returns:
- description
-
putPattern
Put the pattern into the properties- Parameters:
pattern- the pattern
-
getPattern
Get the pattern from the properties- Returns:
- the pattern
-
equals
Check to see if the object in question is equal to this. -
hashCode
public int hashCode()Return the hashcode for this DataOperand. -
toString
Return a string representation of this DataOperand. -
putCategories
Set the categories- Parameters:
categories- catgegories
-
getCategories
Get the list ofDataCategorys that are defined by the categories property- Returns:
- List of data categories or null if none defined
-
setName
Set the name. (Used by XML persistence)- Parameters:
value- name for this object
-
getName
Get the name. (Used by XML persistence)- Returns:
- this object's name
-
setData
Set the data. (Used by XML persistence)- Parameters:
value- the data
-
getData
Get the data. (Used by XML persistence)- Returns:
- the data
-
isBound
public boolean isBound()See if this a bound operand or not (has data)- Returns:
- true if data is not null
-
putMultiple
public void putMultiple(boolean b) Put the multiple property- Parameters:
b- multiple
-
getMultiple
public boolean getMultiple()Get the multiple property- Returns:
- multiple
-
isPersistent
public boolean isPersistent()Is this operand persistent- Returns:
- is persistent
-
isUser
public boolean isUser()Is this operand an end user defined value- Returns:
- Is define dby the user
-
getDataSourceName
DOes this operand have a datasource property- Returns:
- The data source property
-
getUserDefault
Get the default user value- Returns:
- The default for user specified values
-
getProperty
Get the named property- Parameters:
name- property name- Returns:
- The property
-
getParamName
Get just the param name, strip off the categories- Returns:
- The param name
-
getLabel
Get the name used for the label in the gui- Returns:
- The label.
-
makeLegalJython
Remove all of the special IDV characters in the given jython operand.- Returns:
- cleaned up operand
-
getTimeIndices
Get the list of time (Integer) indices defined with the times property- Returns:
- Listof time indices or null
-
main
Test- Parameters:
argv- Cmd line args
-