com.hack23.cia.model.impl.application.content
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.content.AbstractApplicationResource
              extended by com.hack23.cia.model.impl.application.content.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
Constructor and Description
ImageContent()
          Instantiates a new image content.
 
Method Summary
Modifier and Type Method and Description
protected  TypeContext getApplicationTypeContext()
          Gets the application type context.
 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()
          To string.
 
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

getApplicationTypeContext

protected TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application type context.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application type context

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()
To string.

Overrides:
toString in class Object
Returns:
the string


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