hirondelle.fish.exercise.fileupload
Class Image
Object
hirondelle.fish.exercise.fileupload.Image
public final class Image
- extends Object
Model Object for an Image.
Image
public Image(SafeText aDescription,
SafeText aFileName,
SafeText aFileContentType,
Long aFileSize)
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
getDescription
public SafeText getDescription()
getFileName
SafeText getFileName()
getFileContentType
SafeText getFileContentType()
getFileSize
Long getFileSize()
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
Copyright Hirondelle Systems - Generated 2011Sep24.13.57