net.sf.ginp
Class Picture

java.lang.Object
  extended by net.sf.ginp.Picture

public class Picture
extends java.lang.Object

This class represents a Picture. It contains a repository of functionality for Pictures. It is designed to be called as a tempoary object that is used and then discarded.

Version:
$Revision: 321 $
Author:
Doug Culnane

Constructor Summary
Picture()
          Constructor for the Picture object
Picture(java.lang.String setAbsPath, java.lang.String setFileName)
          Constructor for the PicCollection object.
 
Method Summary
 java.lang.String getAbsLocation()
          Gets the absLocation attribute of the Picture object
 int getCollection_id()
          Returns the value of collection_id.
 java.lang.String getCollection_name()
          Returns the value of collection_name.
 java.lang.String getDate(java.lang.String formatPattern, java.util.Locale locale)
          Gets the date attribute of the Picture object.
 java.lang.String getDescription(java.util.Locale loc)
           
 java.lang.String getFileName()
          Gets the fileName attribute of the Picture object
 java.lang.String getId()
          Gets the id attribute of the Picture object
 java.lang.String getTime()
          Gets the time attribute of the Picture object
 java.util.Date getTimestamp()
          Gets the timestamp attribute of the Picture object
 java.lang.String getTitle()
          Gets the title attribute of the Picture object
 void setAbsLocation(java.lang.String str)
          Sets the absLocation attribute of the Picture object
 void setCollection_id(int collection_id)
          Sets the value of collection_id.
 void setCollection_name(java.lang.String collection_name)
          Sets the value of collection_name.
 boolean setDateTime(java.lang.String str)
          Sets the Date and Time attributes of the Picture object based on EXIF tag value
 void setId(java.lang.String str)
          Sets the id attribute of the Picture object
 void setTimestamp(java.util.Date d)
          Sets the timestamp attribute of the Picture object
 void setTitle(java.lang.String s)
          Sets the title attribute of the Picture object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Picture

public Picture()
Constructor for the Picture object


Picture

public Picture(java.lang.String setAbsPath,
               java.lang.String setFileName)
Constructor for the PicCollection object. The xml parameter contains the configuration for this PicCollection.

Parameters:
setAbsPath - path to the jpeg file (can be null or empty). Path separator is ALWAYS "/", regardless of platform. A training path separator is mandatory.
setFileName - filename of the jpeg. It can include some path elements, which will be appended to the absPath.
Method Detail

getCollection_id

public int getCollection_id()
Returns the value of collection_id.


setCollection_id

public void setCollection_id(int collection_id)
Sets the value of collection_id.

Parameters:
collection_id - The value to assign collection_id.

getCollection_name

public java.lang.String getCollection_name()
Returns the value of collection_name.


setCollection_name

public void setCollection_name(java.lang.String collection_name)
Sets the value of collection_name.

Parameters:
collection_name - The value to assign collection_name.

setAbsLocation

public void setAbsLocation(java.lang.String str)
Sets the absLocation attribute of the Picture object

Parameters:
str - The new absLocation value

setDateTime

public boolean setDateTime(java.lang.String str)
Sets the Date and Time attributes of the Picture object based on EXIF tag value

Parameters:
str - The new Date/Time setting String value
Returns:
True if sucessfully set Date and Time

setId

public void setId(java.lang.String str)
Sets the id attribute of the Picture object

Parameters:
str - The new id value

setTimestamp

public void setTimestamp(java.util.Date d)
Sets the timestamp attribute of the Picture object

Parameters:
d - The new timestamp value

setTitle

public void setTitle(java.lang.String s)
Sets the title attribute of the Picture object

Parameters:
s - The new title value

getAbsLocation

public java.lang.String getAbsLocation()
Gets the absLocation attribute of the Picture object

Returns:
The absLocation value

getDate

public java.lang.String getDate(java.lang.String formatPattern,
                                java.util.Locale locale)
Gets the date attribute of the Picture object. Formated to the Locale.

Parameters:
formatPattern - Description of the Parameter
locale - Prefered Locale
Returns:
The formated date

getFileName

public java.lang.String getFileName()
Gets the fileName attribute of the Picture object

Returns:
The fileName value

getId

public java.lang.String getId()
Gets the id attribute of the Picture object

Returns:
The id value

getTime

public java.lang.String getTime()
Gets the time attribute of the Picture object

Returns:
The time value

getTimestamp

public java.util.Date getTimestamp()
Gets the timestamp attribute of the Picture object

Returns:
The timestamp value

getTitle

public java.lang.String getTitle()
Gets the title attribute of the Picture object

Returns:
The title value

getDescription

public java.lang.String getDescription(java.util.Locale loc)


Copyright © 2004-2007 null. All Rights Reserved.