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

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

@Entity
public class ImageContent
extends AbstractApplicationResource
implements BinaryContent

The Class ImageContent.

See Also:
Serialized Form

Constructor Summary
ImageContent()
          Instantiates a new image content.
 
Method Summary
protected  TypeContext getApplicationTypeContext()
          Gets the application group specification.
 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.impl.common.AbstractResource
getId, getResourceType, getVersion, setId, setResourceType, setVersion
 
Methods inherited from class com.hack23.cia.model.impl.common.BaseEntity
equals, getTypeContext, 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.api.common.Resource
getResourceType
 
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject
getId, getTypeContext, getVersion, isNew, setId, setVersion
 

Constructor Detail

ImageContent

public ImageContent()
Instantiates a new image content.

Method Detail

getFileName

public String getFileName()
Description copied from interface: BinaryContent
Gets the file name.

Specified by:
getFileName in interface BinaryContent
Returns:
the file name

getImageContent

public byte[] getImageContent()
Description copied from interface: BinaryContent
Gets the image content.

Specified by:
getImageContent in interface BinaryContent
Returns:
the image content

getMimetype

public String getMimetype()
Description copied from interface: BinaryContent
Gets the mimetype.

Specified by:
getMimetype in interface BinaryContent
Returns:
the mimetype

setFileName

public void setFileName(String fileName)
Description copied from interface: BinaryContent
Sets the file name.

Specified by:
setFileName in interface BinaryContent
Parameters:
fileName - the new file name

setImageContent

public void setImageContent(byte[] imageContent)
Description copied from interface: BinaryContent
Sets the image content.

Specified by:
setImageContent in interface BinaryContent
Parameters:
imageContent - the new image content

setMimetype

public void setMimetype(String mimetype)
Description copied from interface: BinaryContent
Sets the mimetype.

Specified by:
setMimetype in interface BinaryContent
Parameters:
mimetype - the new mimetype

toString

public String toString()
Overrides:
toString in class Object

getApplicationTypeContext

protected TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application group specification.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application group specification


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