Package org.esa.snap.core.datamodel
Class MetadataAttribute
- java.lang.Object
-
- com.bc.ceres.core.ExtensibleObject
-
- org.esa.snap.core.datamodel.ProductNode
-
- org.esa.snap.core.datamodel.DataNode
-
- org.esa.snap.core.datamodel.MetadataAttribute
-
- All Implemented Interfaces:
Extensible
public class MetadataAttribute extends DataNode
AMetadataAttribute
is part of a
and represents a key/value pair.MetadataElement
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from class org.esa.snap.core.datamodel.DataNode
PROPERTY_NAME_DATA, PROPERTY_NAME_READ_ONLY, PROPERTY_NAME_SYNTHETIC, PROPERTY_NAME_UNIT
-
Fields inherited from class org.esa.snap.core.datamodel.ProductNode
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME
-
-
Constructor Summary
Constructors Constructor Description MetadataAttribute(String name, int type)
MetadataAttribute(String name, int type, int numElems)
MetadataAttribute(String name, ProductData data, boolean readOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(ProductVisitor visitor)
Accepts the given visitor.MetadataAttribute
createDeepClone()
boolean
equals(Object object)
MetadataElement
getParentElement()
-
Methods inherited from class org.esa.snap.core.datamodel.DataNode
checkDataCompatibility, createCompatibleProductData, dispose, fireProductNodeDataChanged, getData, getDataElems, getDataElemSize, getDataType, getNumDataElems, getRawStorageSize, getUnit, isFloatingPointType, isReadOnly, isSynthetic, setData, setDataElems, setReadOnly, setSynthetic, setUnit
-
Methods inherited from class org.esa.snap.core.datamodel.ProductNode
fireProductNodeChanged, fireProductNodeChanged, getDescription, getDisplayName, getName, getOwner, getProduct, getProductReader, getProductReaderSafe, getProductRefString, getProductSafe, getProductWriter, getProductWriterSafe, getRawStorageSize, isModified, isPartOfSubset, isValidNodeName, removeFromFile, setDescription, setModified, setName, setNodeName, setOwner, toString, updateExpression
-
Methods inherited from class com.bc.ceres.core.ExtensibleObject
getExtension
-
-
-
-
Constructor Detail
-
MetadataAttribute
public MetadataAttribute(String name, int type)
-
MetadataAttribute
public MetadataAttribute(String name, int type, int numElems)
-
MetadataAttribute
public MetadataAttribute(String name, ProductData data, boolean readOnly)
-
-
Method Detail
-
getParentElement
public MetadataElement getParentElement()
-
acceptVisitor
public void acceptVisitor(ProductVisitor visitor)
Accepts the given visitor. This method implements the well known 'Visitor' design pattern of the gang-of-four. The visitor pattern allows to define new operations on the product data model without the need to add more code to it. The new operation is implemented by the visitor.The method simply calls
visitor.visit(this)
.- Specified by:
acceptVisitor
in classDataNode
- Parameters:
visitor
- the visitor
-
createDeepClone
public MetadataAttribute createDeepClone()
-
-