com.hack23.cia.model.application.impl.common
Class ImageContent

Package class diagram package ImageContent
java.lang.Object
  extended by com.hack23.cia.model.common.impl.BaseEntity
      extended by com.hack23.cia.model.common.impl.AbstractResource
          extended by com.hack23.cia.model.application.impl.common.AbstractApplicationResource
              extended by com.hack23.cia.model.application.impl.common.ImageContent
All Implemented Interfaces:
Content, ApplicationResource, ModelObject, PersistedModelObject, Resource, Serializable

@Entity
public class ImageContent
extends AbstractApplicationResource
implements Content

The Class ImageContent.

See Also:
Serialized Form

Constructor Summary
ImageContent()
          Instantiates a new image content.
 
Method Summary
 String getFileName()
          Gets the file name.
 byte[] getImageContent()
          Gets the image content.
 String getMimetype()
          Gets the mimetype.
 void setFileName(String fileName)
          Sets the file name.
 void setImageContent(byte[] imageContent)
          Sets the image content.
 void setMimetype(String mimetype)
          Sets the mimetype.
 String toString()
           
 
Methods inherited from class com.hack23.cia.model.common.impl.AbstractResource
getId, getResourceType, getVersion, setId, setResourceType, setVersion
 
Methods inherited from class com.hack23.cia.model.common.impl.BaseEntity
equals, hashCode, isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.model.common.api.Resource
getResourceType, setResourceType
 
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject
getId, getVersion, isNew, setId, setVersion
 

Constructor Detail

ImageContent

public ImageContent()
Instantiates a new image content.

Method Detail

getFileName

public String getFileName()
Gets the file name.

Returns:
the file name

getImageContent

public byte[] getImageContent()
Gets the image content.

Returns:
the image content

getMimetype

public String getMimetype()
Gets the mimetype.

Returns:
the mimetype

setFileName

public void setFileName(String fileName)
Sets the file name.

Parameters:
fileName - the new file name

setImageContent

public void setImageContent(byte[] imageContent)
Sets the image content.

Parameters:
imageContent - the new image content

setMimetype

public void setMimetype(String mimetype)
Sets the mimetype.

Parameters:
mimetype - the new mimetype

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.