ERMetadataDirectorySet Class Reference

Collaboration diagram for ERMetadataDirectorySet:

Collaboration graph
[legend]

List of all members.

Public Member Functions

IERMetadataDirectory _getDirectoryNamed (String directoryName)
void add (ERMetadataDirectorySet rawAssetMetadata)
void addMetadata (IERMetadataDirectory metadata)
 ERMetadataDirectorySet ()
String getCaption ()
ERParsedMetadataDirectory getDirectoryNamed (String directoryName)
int getHeight ()
List< IERMetadataDirectorygetMetadataDirectories ()
int getWidth ()
boolean isEmpty ()
boolean isRotated ()
void setCaption (String caption)
void setHeight (int height)
void setRotated (boolean rotated)
void setWidth (int width)
String toString ()

Protected Member Functions

void parseUnparsedDirectoriesWith (IERMetadataDirectoryParser metadataDirectoryParser)
List< IERMetadataDirectoryremoveUnparsedDirectories ()
void replaceUnparsedWithParsed (ERUnparsedMetadataDirectory oldMetadata, ERParsedMetadataDirectory newMetadata)

Private Attributes

String _caption
int _height
List< IERMetadataDirectory_metadataDirectories
boolean _rotated
int _width


Detailed Description

An ERMetadataDirectorySet contains generic metadata (like width/height) as well a set of metadata directories (like EXIF or IPTC).

Author:
mschrag

Constructor & Destructor Documentation


Member Function Documentation

IERMetadataDirectory _getDirectoryNamed ( String  directoryName  ) 

Returns the metadata directory of the given type (IERMetadataDirectory.EXIF, IERMetadataDirectory.IPTC, etc).

Parameters:
directoryName the metadata directory name
Returns:
the matching meatdata directory, or null if one does not exist

void add ( ERMetadataDirectorySet  rawAssetMetadata  ) 

Adds the given raw directory set to this directory set.

Parameters:
rawAssetMetadata a raw directory set

void addMetadata ( IERMetadataDirectory  metadata  ) 

Adds a metadata directory to this set.

Parameters:
metadata the metadata directory to add

String getCaption (  ) 

Returns the caption for the image.

Returns:
the caption for the image

ERParsedMetadataDirectory getDirectoryNamed ( String  directoryName  ) 

Returns the metadata directory of the given type (IERMetadataDirectory.EXIF, IERMetadataDirectory.IPTC, etc) and casts to an ERParsedMetadataDirectory.

Parameters:
directoryName the metadata directory name
Returns:
the matching meatdata directory, or null if one does not exist

int getHeight (  ) 

Returns the height of the image.

List<IERMetadataDirectory> getMetadataDirectories (  ) 

Returns the metadata directories from this set.

int getWidth (  ) 

Returns the width of the image.

boolean isEmpty (  ) 

boolean isRotated (  ) 

Returns whether or not the image was rotated.

void parseUnparsedDirectoriesWith ( IERMetadataDirectoryParser  metadataDirectoryParser  )  [protected]

List<IERMetadataDirectory> removeUnparsedDirectories (  )  [protected]

void replaceUnparsedWithParsed ( ERUnparsedMetadataDirectory  oldMetadata,
ERParsedMetadataDirectory  newMetadata 
) [protected]

void setCaption ( String  caption  ) 

Sets the caption for the image.

void setHeight ( int  height  ) 

Sets the height of the image.

Parameters:
height the height of the image

void setRotated ( boolean  rotated  ) 

Sets whether or not the given image was rotated.

Parameters:
rotated whether or not the given image was rotated

void setWidth ( int  width  ) 

Sets the width of the image.

Parameters:
width the width of the image

String toString (  ) 


Member Data Documentation

String _caption [private]

int _height [private]

boolean _rotated [private]

int _width [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:42 2012 for Project Wonder by  doxygen 1.5.8