Fish & Chips Club 4.10.0.0

hirondelle.fish.exercise.fileupload
Class Image

Object
  extended by hirondelle.fish.exercise.fileupload.Image

public final class Image
extends Object

Model Object for an Image.


Constructor Summary
Image(Id aId, SafeText aDescription, SafeText aFileName, SafeText aFileContentType, Long aFileSize, InputStream aInputStream)
          Full constructor.
 
Method Summary
 boolean equals(Object aThat)
           
 SafeText getDescription()
           
 SafeText getFileContentType()
           
 SafeText getFileName()
           
 Long getFileSize()
           
 Id getId()
           
 InputStream getInputStream()
          This is not shown in a listing.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image(Id aId,
             SafeText aDescription,
             SafeText aFileName,
             SafeText aFileContentType,
             Long aFileSize,
             InputStream aInputStream)
      throws ModelCtorException
Full constructor.

Parameters:
aDescription - Description of the image, required, length in range 1..100.
aFileName - Name of uploaded image file, required, length in range 1..100, ends in .jpeg, .jpg, .gif, or .png.
aFileContentType - MIME type of the uploaded file, required, length in range 1..100, must be image/jpeg, image/gif, or image/png.
aFileSize - Size of the uploaded file, required, must be in range 1K to 50K.
Throws:
ModelCtorException
Method Detail

getId

public Id getId()

getDescription

public SafeText getDescription()

getFileName

public SafeText getFileName()

getFileContentType

public SafeText getFileContentType()

getFileSize

public Long getFileSize()

getInputStream

public InputStream getInputStream()
This is not shown in a listing. It serves to exercise the fetch of an InputStream from the database.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object aThat)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26