Class MaskPersistable
- java.lang.Object
-
- org.esa.snap.core.dataio.dimap.spi.RasterDataNodePersistable
-
- org.esa.snap.core.dataio.dimap.spi.MaskPersistable
-
- All Implemented Interfaces:
DimapPersistable
- Direct Known Subclasses:
RangeTypeMaskPersistable
public abstract class MaskPersistable extends RasterDataNodePersistable
- Since:
- BEAM 4.7
-
-
Constructor Summary
Constructors Constructor Description MaskPersistable()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
configureElement(org.jdom2.Element root, Mask mask)
protected abstract void
configureMask(Mask mask, org.jdom2.Element element, Product product)
protected abstract Mask.ImageType
createImageType()
Mask
createObjectFromXml(org.jdom2.Element element, Product product)
Creates an object for the providedProduct
based on the data provided by theelement
.org.jdom2.Element
createXmlFromObject(Object object)
Converts the object into an XML element.protected static String
getChildAttributeValue(org.jdom2.Element element, String childName, String attributeName)
-
Methods inherited from class org.esa.snap.core.dataio.dimap.spi.RasterDataNodePersistable
addAncillaryElements, addImageToModelTransformElement, createElement, createValueAttributeElement, setAncillaryRelations, setAncillaryVariables, setImageToModelTransform
-
-
-
-
Method Detail
-
createObjectFromXml
public final Mask createObjectFromXml(org.jdom2.Element element, Product product)
Description copied from interface:DimapPersistable
Creates an object for the providedProduct
based on the data provided by theelement
.- Parameters:
element
- The XML element containing the information to create the objectproduct
- The product the created object is intended for- Returns:
- the created object
-
createXmlFromObject
public final org.jdom2.Element createXmlFromObject(Object object)
Description copied from interface:DimapPersistable
Converts the object into an XML element.- Parameters:
object
- The object to convert- Returns:
- The converted XML element
-
createImageType
protected abstract Mask.ImageType createImageType()
-
configureMask
protected abstract void configureMask(Mask mask, org.jdom2.Element element, Product product)
-
configureElement
protected abstract void configureElement(org.jdom2.Element root, Mask mask)
-
-