|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bc.ceres.core.ExtensibleObject
org.esa.beam.framework.datamodel.ProductNode
org.esa.beam.framework.datamodel.MetadataElement
org.esa.beam.framework.datamodel.SampleCoding
public class SampleCoding
Provides the information required to decode integer sample values that are combined of single flags (bit indexes).
| Field Summary |
|---|
| Fields inherited from class org.esa.beam.framework.datamodel.ProductNode |
|---|
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME |
| Constructor Summary | |
|---|---|
SampleCoding(String name)
|
|
| Method Summary | |
|---|---|
void |
addAttribute(MetadataAttribute attribute)
Adds an attribute to this node. |
void |
addElement(MetadataElement element)
Overrides the base class addElement in order to not add an element to this flag coding
because flag codings do not support inner elements. |
MetadataAttribute |
addSample(String name,
int value,
String description)
Adds a new coding value to this sample coding. |
int |
getSampleCount()
Gets the number of coded sample values. |
String |
getSampleName(int index)
Gets the sample name at the specified attribute index. |
int |
getSampleValue(int index)
Gets the sample value at the specified attribute index. |
| Methods inherited from class org.esa.beam.framework.datamodel.ProductNode |
|---|
fireProductNodeChanged, fireProductNodeChanged, getDescription, getDisplayName, getName, getOwner, getProduct, getProductReader, getProductReaderSafe, getProductRefString, getProductSafe, getProductWriter, getProductWriterSafe, getRawStorageSize, isModified, isPartOfSubset, isValidNodeName, removeFromFile, setDescription, setName, setOwner, toString, updateExpression |
| Methods inherited from class com.bc.ceres.core.ExtensibleObject |
|---|
getExtension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SampleCoding(String name)
| Method Detail |
|---|
public void addElement(MetadataElement element)
addElement in order to not add an element to this flag coding
because flag codings do not support inner elements.
addElement in class MetadataElementelement - the element to be added, always ignoredpublic void addAttribute(MetadataAttribute attribute)
addAttribute in class MetadataElementattribute - the attribute to be added
IllegalArgumentException - if the attribute added is not an integer or does not have a scalar value
public MetadataAttribute addSample(String name,
int value,
String description)
name - the coding namevalue - the valuedescription - the description text
IllegalArgumentException - if name is nullpublic int getSampleCount()
public String getSampleName(int index)
index - the attribute index.
public int getSampleValue(int index)
index - the attribute index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||