Package uk.ac.bristol.star.cdf
Class VariableAttribute
- java.lang.Object
-
- uk.ac.bristol.star.cdf.VariableAttribute
-
public class VariableAttribute extends java.lang.Object
Provides the description and per-variable entry values for a CDF attribute with variable scope.- Since:
- 20 Jun 2013
-
-
Constructor Summary
Constructors Constructor Description VariableAttribute(java.lang.String name, AttributeEntry[] rEntries, AttributeEntry[] zEntries)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeEntry
getEntry(Variable variable)
Returns the entry value that a given variable has for this attribute.java.lang.String
getName()
Returns this attribute's name.
-
-
-
Constructor Detail
-
VariableAttribute
public VariableAttribute(java.lang.String name, AttributeEntry[] rEntries, AttributeEntry[] zEntries)
Constructor.- Parameters:
name
- attribute namerEntries
- rEntry values for this attributezEntries
- zEntry values for this attribute
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns this attribute's name.- Returns:
- attribute name
-
getEntry
public AttributeEntry getEntry(Variable variable)
Returns the entry value that a given variable has for this attribute. If the variable has no entry for this attribute, null is returned.- Parameters:
variable
- CDF variable from the same CDF as this attribute- Returns:
- this attribute's value for
variable
-
-