public class VariableSimpleImpl extends java.lang.Object implements VariableSimpleIF
Modifier and Type | Method and Description |
---|---|
VariableSimpleImpl |
add(Attribute att) |
static VariableSimpleImpl |
changeShape(VariableSimpleIF proxy,
java.util.List<Dimension> dims) |
int |
compareTo(VariableSimpleIF o) |
Attribute |
findAttributeIgnoreCase(java.lang.String name)
find the attribute for the variable with the given name, ignoring case.
|
java.util.List<Attribute> |
getAttributes()
Attributes for the variable.
|
DataType |
getDataType()
Variable's data type
|
java.lang.String |
getDescription()
description of the Variable
|
java.util.List<Dimension> |
getDimensions()
Dimension List.
|
java.lang.String |
getFullName()
full, backslash escaped name of the data Variable
|
java.lang.String |
getName()
Name of the data Variable.
|
int |
getRank()
Variable rank
|
int[] |
getShape()
Variable shape
|
java.lang.String |
getShortName()
short name of the data Variable
|
java.lang.String |
getUnitsString()
Units of the Variable.
|
static VariableSimpleImpl |
makeScalar(java.lang.String name,
java.lang.String desc,
java.lang.String units,
DataType dt) |
static VariableSimpleImpl |
makeString(java.lang.String name,
java.lang.String desc,
java.lang.String units,
int str_len) |
public static VariableSimpleImpl makeScalar(java.lang.String name, java.lang.String desc, java.lang.String units, DataType dt)
public static VariableSimpleImpl makeString(java.lang.String name, java.lang.String desc, java.lang.String units, int str_len)
public static VariableSimpleImpl changeShape(VariableSimpleIF proxy, java.util.List<Dimension> dims)
public VariableSimpleImpl add(Attribute att)
public java.lang.String getName()
VariableSimpleIF
getName
in interface VariableSimpleIF
public java.lang.String getFullName()
VariableSimpleIF
getFullName
in interface VariableSimpleIF
public java.lang.String getShortName()
VariableSimpleIF
getShortName
in interface VariableSimpleIF
public java.lang.String getDescription()
VariableSimpleIF
getDescription
in interface VariableSimpleIF
public java.lang.String getUnitsString()
VariableSimpleIF
getUnitsString
in interface VariableSimpleIF
public int getRank()
VariableSimpleIF
getRank
in interface VariableSimpleIF
public int[] getShape()
VariableSimpleIF
getShape
in interface VariableSimpleIF
public java.util.List<Dimension> getDimensions()
VariableSimpleIF
getDimensions
in interface VariableSimpleIF
public DataType getDataType()
VariableSimpleIF
getDataType
in interface VariableSimpleIF
public java.util.List<Attribute> getAttributes()
VariableSimpleIF
getAttributes
in interface VariableSimpleIF
public Attribute findAttributeIgnoreCase(java.lang.String name)
VariableSimpleIF
findAttributeIgnoreCase
in interface VariableSimpleIF
name
- attribute namepublic int compareTo(VariableSimpleIF o)
compareTo
in interface java.lang.Comparable<VariableSimpleIF>