package org.eclipse.birt.report.engine.api.script.instance;


public interface IImageInstance extends IReportItemInstance
{

	/**
	 * Get the alt text
	 * 
	 */
	String getAltText( );

	/**
	 * Set the alt text
	 * 
	 * @param altText
	 */
	void setAltText( String altText );

	/**
	 * Get the alt text
	 * 
	 */
	String getAltTextKey( );

	/**
	 * Set the alt text
	 * 
	 * @param altText
	 */
	void setAltTextKey( String altTextKey );

	/**
	 * Get the image URI
	 * 
	 */
	String getURI( );

	/**
	 * @deprecated
	 * Set the image URI
	 * 
	 */
	void setURI( String uri );

	/**
	 * Returns the type of image source Can be one of the following:
	 * org.eclipse.birt.report.engine.ir.ImageItemDesign.IMAGE_URI
	 * org.eclipse.birt.report.engine.ir.ImageItemDesign.IMAGE_NAME
	 * org.eclipse.birt.report.engine.ir.ImageItemDesign.IMAGE_EXPRESSION
	 * org.eclipse.birt.report.engine.ir.ImageItemDesign.IMAGE_FILE
	 */
	int getImageSource( );

	/**
	 * Get the image name
	 */
	String getImageName( );

	/**
	 * Set the image name
	 */
	void setImageName( String imageName );
	
	/**
	 * Returns the data for a named image
	 */
	byte[] getData( );

	/**
	 * Set the data for a named image
	 */
	void setData( byte[] data );
	
	/**
	 * Get the MIME Type
	 */
	String getMimeType();
	
	/**
	 * Set the MIME Type
	 */
	void setMimeType(String type);
	
	/**
	 * Sets the image url. The source type is <code>IMAGE_REF_TYPE_URL</code>, 
	 * and will automatically set in this method. 
	 */
	void setURL ( String url );
	
	/** 
	 * get the image url, 
	 * if the source type is not <code>IMAGE_REF_TYPE_URL</code> return null.
	 */
	String getURL( );
	
	/**
	 * Sets the image file. The source type is <code>IMAGE_REF_TYPE_FILE</code>, 
	 * and will automatically set in this method. 
	 */
	void setFile ( String file );

	/** 
	 * get the image url, 
	 * if the source type is not <code>IMAGE_REF_TYPE_FILE</code> return null.
	 */
	String getFile( );

}
@@ -680,36 +680,40 @@
 ine.
-ir.
+content.I
 Image
-ItemDesign
+Content
 .IMAGE_
-URI
+FILE
 %0A%09 *
@@ -744,34 +744,37 @@
 .engine.
-ir.ImageItemDesign
+content.IImageContent
 .IMAGE_N
@@ -812,34 +812,37 @@
 .engine.
-ir.ImageItemDesign
+content.IImageContent
 .IMAGE_E
@@ -890,37 +890,39 @@
 ine.
-ir.ImageItemDesign
+content.IImageContent
 .IMAGE_
-FILE
+URL
 %0A%09 *

correct the javaDoc of getImageSource