|
||||||||||
| 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
org.esa.beam.framework.datamodel.IndexCoding
public class IndexCoding
Provides the information required to decode integer sample values that represent index values (e.g. types, classes, categories).
| Field Summary |
|---|
| Fields inherited from class org.esa.beam.framework.datamodel.ProductNode |
|---|
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME |
| Constructor Summary | |
|---|---|
IndexCoding(String name)
Constructs a new index coding object with the given name. |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(ProductVisitor visitor)
Accepts the given visitor. |
MetadataAttribute |
addIndex(String name,
int value,
String description)
Adds a new index definition to this flags coding. |
MetadataAttribute |
getIndex(String name)
Returns a metadata attribute wich is the representation of the index with the given name. |
String[] |
getIndexNames()
Returns a string array which contains the names of all indexes contained in this IndexCoding object. |
int |
getIndexValue(String name)
Returns the flag mask value for the specified flag name. |
| Methods inherited from class org.esa.beam.framework.datamodel.SampleCoding |
|---|
addAttribute, addElement, addSample, getSampleCount, getSampleName, getSampleValue |
| 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 IndexCoding(String name)
name - the name| Method Detail |
|---|
public MetadataAttribute getIndex(String name)
name - the flag name
public String[] getIndexNames()
IndexCoding object.
FlagCoding.FlagCoding does not contain any flag, null is returned
public MetadataAttribute addIndex(String name,
int value,
String description)
name - the index namevalue - the index valuedescription - the description text
IllegalArgumentException - if name is nullpublic int getIndexValue(String name)
name - the flag name
IllegalArgumentException - if name is null, or a flag with the name does not existpublic void acceptVisitor(ProductVisitor visitor)
The method simply calls visitor.visit(this).
acceptVisitor in class MetadataElementvisitor - the visitor, must not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||