|
||||||||||
| 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.FlagCoding
public class FlagCoding
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 | |
|---|---|
FlagCoding(String name)
Constructs a new flag coding object with the given name. |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(ProductVisitor visitor)
Accepts the given visitor. |
MetadataAttribute |
addFlag(String name,
int flagMask,
String description)
Adds a new flag definition to this flags coding. |
MetadataAttribute |
getFlag(String name)
Returns a metadata attribute wich is the representation of the flag with the given name. |
int |
getFlagMask(String name)
Returns the flag mask value for the specified flag name. |
String[] |
getFlagNames()
Returns a string array which contains the names of all flags contained in this FlagCoding object. |
| 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 FlagCoding(String name)
name - the name| Method Detail |
|---|
public MetadataAttribute getFlag(String name)
name - the flag name
public String[] getFlagNames()
FlagCoding object.
FlagCoding.FlagCoding does not contain any flag, null is returned
public MetadataAttribute addFlag(String name,
int flagMask,
String description)
name - the flag nameflagMask - the flag's bit maskdescription - the description text
IllegalArgumentException - if name is nullpublic int getFlagMask(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 | |||||||||