public class EmbeddedImageHandle extends StructureHandle
ImageItem
gives a name. Each
embedded image has the following properties:
structContext
elementHandle
Constructor and Description |
---|
EmbeddedImageHandle(SimpleValueHandle valueHandle,
int index)
Constructs the handle of embedded image.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Returns the byte array of image data.
|
java.lang.String |
getName()
Returns the embedded image name.
|
java.lang.String |
getQualifiedName()
Returns the qualified name of this element.
|
java.lang.String |
getType()
Returns the image type.
|
boolean |
isLibReference()
Checks whether
EmbeddedImage has reference to library
embedded image. |
void |
setData(byte[] data)
Sets the byte array of image data.
|
void |
setName(java.lang.String name)
Sets the embedded image name.
|
void |
setType(java.lang.String type)
Sets the image type.
|
drop, getContext, getDefn, getExpressionProperty, getExternalizedValue, getExternalizedValue, getIntProperty, getMember, getProperty, getPropertyDefn, getStringProperty, getStructure, isDesignTime, isLocal, iterator, setDesignTime, setExpressionProperty, setProperty, setPropertySilently
getReference
getDesign, getElement, getElementHandle, getModule
public EmbeddedImageHandle(SimpleValueHandle valueHandle, int index)
valueHandle
- the value handle for embedded image list of one propertyindex
- the position of this embedded image in the listpublic byte[] getData()
public void setData(byte[] data)
data
- the byte array to setpublic java.lang.String getName()
public void setName(java.lang.String name) throws SemanticException
name
- the embedded image name to setSemanticException
- value required exceptionpublic java.lang.String getType()
DesignChoiceConstants
,
and they are:
IMAGE_TYPE_IMAGE_JPEG
IMAGE_TYPE_IMAGE_BMP
IMAGE_TYPE_IMAGE_GIF
IMAGE_TYPE_IMAGE_PNG
IMAGE_TYPE_IMAGE_X_PNG
public void setType(java.lang.String type) throws SemanticException
DesignChoiceConstants
,
and they are:
IMAGE_TYPE_IMAGE_JPEG
IMAGE_TYPE_IMAGE_BMP
IMAGE_TYPE_IMAGE_GIF
IMAGE_TYPE_IMAGE_PNG
IMAGE_TYPE_IMAGE_X_PNG
type
- the image type to setSemanticException
- if the image type is not in the choice list.public java.lang.String getQualifiedName()
public boolean isLibReference()
EmbeddedImage
has reference to library
embedded image.EmbeddedImage
has reference to library image and
the reference is resolved return true
else return
false
Copyright © 2014 OpenText Corp. All rights reserved.