public class IndexCoding extends SampleCoding
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME
Constructor and Description |
---|
IndexCoding(String name)
Constructs a new index coding object with the given name.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addAttribute, addElement, addSample, addSamples, getSampleCount, getSampleName, getSampleValue
addElementAt, containsAttribute, containsElement, createDeepClone, dispose, getAttribute, getAttributeAt, getAttributeDouble, getAttributeDouble, getAttributeIndex, getAttributeInt, getAttributeInt, getAttributeNames, getAttributes, getAttributeString, getAttributeString, getAttributeUTC, getAttributeUTC, getElement, getElementAt, getElementGroup, getElementIndex, getElementNames, getElements, getNumAttributes, getNumElements, getParentElement, getRawStorageSize, removeAttribute, removeElement, setAttributeDouble, setAttributeInt, setAttributeString, setAttributeUTC, setModified
fireProductNodeChanged, fireProductNodeChanged, getDescription, getDisplayName, getName, getOwner, getProduct, getProductReader, getProductReaderSafe, getProductRefString, getProductSafe, getProductWriter, getProductWriterSafe, getRawStorageSize, isModified, isPartOfSubset, isValidNodeName, removeFromFile, setDescription, setName, setOwner, toString, updateExpression
getExtension
public IndexCoding(String name)
name
- the namepublic MetadataAttribute getIndex(String name)
name
- the flag namepublic String[] getIndexNames()
IndexCoding
object.FlagCoding
.FlagCoding
does not contain any flag, null
is returnedpublic MetadataAttribute addIndex(String name, int value, String description)
name
- the index namevalue
- the index valuedescription
- the description textIllegalArgumentException
- if name
is nullpublic int getIndexValue(String name)
name
- the flag nameIllegalArgumentException
- 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 MetadataElement
visitor
- the visitor, must not be null
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.