it.geosolutions.imageio.plugins.swan
Class SwanImageMetadata

Object
  extended by IIOMetadata
      extended by SwanBaseMetadata
          extended by SwanImageMetadata

public final class SwanImageMetadata
extends SwanBaseMetadata

This class represents metadata associated with images and streams.

Author:
Daniele Romagnoli, GeoSolutions., Simone Giannecchini, GeoSolutions.

Field Summary
static String[] metadataFormatNames
           
static String nativeMetadataFormatName
           
 
Fields inherited from class SwanBaseMetadata
decimalDigits, nCols, nRows, rasterSpace, rasterSpaceTypes, xll, xur, yll, yur
 
Fields inherited from class IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
 
Constructor Summary
SwanImageMetadata()
           
SwanImageMetadata(SwanRaster raster, int imageIndex)
           
 
Method Summary
 Node getAsTree(String formatName)
          returns the image metadata in a tree corresponding to the provided formatName
 IIOMetadataFormat getMetadataFormat(String formatName)
          IIOMetadataFormat objects are meant to describe the structure of metadata returned from the getAsTree method.
 boolean isReadOnly()
           
 void mergeTree(String formatName, Node root)
           
 void reset()
           
 
Methods inherited from class SwanBaseMetadata
initializeFromRaster
 
Methods inherited from class IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormatNames, getNativeMetadataFormatName, getStandardChromaNode, getStandardCompressionNode, getStandardDataNode, getStandardDimensionNode, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nativeMetadataFormatName

public static final String nativeMetadataFormatName
See Also:
Constant Field Values

metadataFormatNames

public static final String[] metadataFormatNames
Constructor Detail

SwanImageMetadata

public SwanImageMetadata(SwanRaster raster,
                         int imageIndex)

SwanImageMetadata

public SwanImageMetadata()
Method Detail

getAsTree

public Node getAsTree(String formatName)
returns the image metadata in a tree corresponding to the provided formatName

Specified by:
getAsTree in class IIOMetadata
Parameters:
formatName - The format Name
Returns:
Throws:
IllegalArgumentException - if the formatName is not one of the supported format names

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in class IIOMetadata
See Also:
IIOMetadata.isReadOnly()

mergeTree

public void mergeTree(String formatName,
                      Node root)
               throws IIOInvalidTreeException
Specified by:
mergeTree in class IIOMetadata
Throws:
IIOInvalidTreeException
See Also:
IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node)

reset

public void reset()
Overrides:
reset in class SwanBaseMetadata
See Also:
IIOMetadata.reset()

getMetadataFormat

public IIOMetadataFormat getMetadataFormat(String formatName)
IIOMetadataFormat objects are meant to describe the structure of metadata returned from the getAsTree method.

Overrides:
getMetadataFormat in class IIOMetadata
Parameters:
formatName - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IllegalArgumentException - DOCUMENT ME!


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.