|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface representing an image record.
The follow values are required to create an image record.
The following values are optional.
The following values are optional. They are reset when the thumbnail is re-generated for the image record.
The following values are set automatically.
| Nested Class Summary | |
static class |
ImageBlobRecord.Cropping
Enumerations for image cropping. |
static class |
ImageBlobRecord.Format
Enumerations for image format. |
static class |
ImageBlobRecord.Rotation
Enumerations for image rotation. |
| Nested classes inherited from class com.sap.mdm.data.Record |
Record.CheckoutStatus, Record.MatrixType, Record.ModificationStatus |
| Method Summary | |
MdmValue |
getCrcOfOriginal()
Returns the CRC (cyclic redundancy check) of the image. |
MdmValue |
getCropping()
Returns the image cropping. |
MdmValue |
getFormat()
Returns the image format, BMP, GIF, JPG, etc. |
MdmValue |
getHasClipping()
Returns whether the image has clipping path. |
MdmValue |
getHasThumbnail()
Returns whether the blob has a thumbnail. |
MdmValue |
getHeight()
Sets the image height. |
MdmValue |
getIsVector()
Returns whether the image is in vector form. |
MdmValue |
getResolution()
Returns the image resolution. |
MdmValue |
getRotation()
Returns the image rotation. |
MdmValue |
getWidth()
Returns the image width. |
void |
setCrcOfOriginal(int crcOfOriginal)
Sets the CRC (cyclic redundancy check) of the image (optional). |
void |
setCrcOfOriginal(MdmValue crcOfOriginal)
Sets the CRC (cyclic redundancy check) of the image (optional). |
void |
setCropping(int cropping)
Sets the image cropping (optional). |
void |
setCropping(MdmValue cropping)
Sets the image cropping (optional). |
void |
setFormat(int format)
Sets the image format, BMP, GIF, JPG, etc (optional). |
void |
setFormat(MdmValue format)
Sets the image format, BMP, GIF, JPG, etc (optional). |
void |
setHasClipping(boolean clipping)
Sets whether the image has clipping path (optional). |
void |
setHasClipping(MdmValue clipping)
Sets whether the image has clipping path (optional). |
void |
setHasThumbnail(boolean hasThumbnail)
Sets whether the blob has a thumbnail (optional). |
void |
setHasThumbnail(MdmValue hasThumbnail)
Sets whether the blob has a thumbnail (optional). |
void |
setHeight(int height)
Sets the image height (optional). |
void |
setHeight(MdmValue height)
Sets the image height (optional). |
void |
setIsVector(boolean isVector)
Sets whether the image is in vector form (optional). |
void |
setIsVector(MdmValue isVector)
Sets whether the image is in vector form (optional). |
void |
setResolution(int resolution)
Sets the image resolution (optional). |
void |
setResolution(MdmValue resolution)
Sets the image resolution (optional). |
void |
setRotation(int rotation)
Sets the image rotation (optional). |
void |
setRotation(MdmValue rotation)
Sets the image rotation (optional). |
void |
setThumbnail(BinaryValue thumbnail)
Sets the specified thumbnail image for the image record (optional). |
void |
setWidth(int width)
Sets the image width (optional). |
void |
setWidth(MdmValue width)
Sets the image width (optional). |
| Methods inherited from interface com.sap.mdm.blobs.BinaryBlobRecord |
getBinary, getDataLocationId, getHasOriginal, getName, getOriginalName, getSource, setBinary, setBinary, setDataLocationId, setHasOriginal, setHasOriginal, setName, setName, setOriginalName, setOriginalName, setSource |
| Methods inherited from interface com.sap.mdm.blobs.BlobRecord |
getCode, getDataGroupId, getDataSize, getDescription, setCode, setDataGroupId, setDataSize, setDataSize, setDescription, setDescription |
| Method Detail |
public MdmValue getHasThumbnail()
true if it has a thumbnail, otherwise false
public void setHasThumbnail(MdmValue hasThumbnail)
throws IllegalArgumentException,
MdmValueTypeException
hasThumbnail - true if it has a thumbnail, otherwise false
IllegalArgumentException
MdmValueTypeExceptionpublic void setHasThumbnail(boolean hasThumbnail)
hasThumbnail - true if it has a thumbnail, otherwise false
IllegalArgumentException
MdmValueTypeExceptionpublic MdmValue getWidth()
public void setWidth(MdmValue width)
throws IllegalArgumentException,
MdmValueTypeException
width - a width
IllegalArgumentException
MdmValueTypeExceptionpublic void setWidth(int width)
width - a width
IllegalArgumentException
MdmValueTypeExceptionpublic MdmValue getHeight()
public void setHeight(MdmValue height)
throws IllegalArgumentException,
MdmValueTypeException
height - a height
IllegalArgumentException
MdmValueTypeExceptionpublic void setHeight(int height)
height - a height
IllegalArgumentException
MdmValueTypeExceptionpublic MdmValue getFormat()
public void setFormat(MdmValue format)
throws IllegalArgumentException,
MdmValueTypeException
format - an image format
IllegalArgumentException
MdmValueTypeExceptionpublic void setFormat(int format)
format - an image format
IllegalArgumentException
MdmValueTypeExceptionpublic MdmValue getRotation()
public void setRotation(MdmValue rotation)
throws IllegalArgumentException,
MdmValueTypeException
rotation - an image rotation
IllegalArgumentException
MdmValueTypeExceptionpublic void setRotation(int rotation)
rotation - an image rotation
IllegalArgumentException
MdmValueTypeExceptionpublic MdmValue getIsVector()
true if the image is in vector form, otherwise false
public void setIsVector(MdmValue isVector)
throws IllegalArgumentException,
MdmValueTypeException
isVector - true if the image is in vector form, otherwise false
IllegalArgumentException
MdmValueTypeExceptionpublic void setIsVector(boolean isVector)
isVector - true if the image is in vector form, otherwise false
IllegalArgumentException
MdmValueTypeExceptionpublic MdmValue getHasClipping()
true if the image has clipping path, otherwise false
public void setHasClipping(MdmValue clipping)
throws IllegalArgumentException,
MdmValueTypeException
clipping - true if the image has clipping path, otherwise false
IllegalArgumentException
MdmValueTypeExceptionpublic void setHasClipping(boolean clipping)
clipping - true if the image has clipping path, otherwise false
IllegalArgumentException
MdmValueTypeExceptionpublic MdmValue getResolution()
public void setResolution(MdmValue resolution)
throws IllegalArgumentException,
MdmValueTypeException
resolution - an image resolution
IllegalArgumentException
MdmValueTypeExceptionpublic void setResolution(int resolution)
resolution - an image resolution
IllegalArgumentException
MdmValueTypeExceptionpublic MdmValue getCrcOfOriginal()
public void setCrcOfOriginal(MdmValue crcOfOriginal)
throws IllegalArgumentException,
MdmValueTypeException
crcOfOriginal - a CRC value
IllegalArgumentException
MdmValueTypeExceptionpublic void setCrcOfOriginal(int crcOfOriginal)
crcOfOriginal - a CRC value
IllegalArgumentException
MdmValueTypeExceptionpublic MdmValue getCropping()
public void setCropping(MdmValue cropping)
throws IllegalArgumentException,
MdmValueTypeException
cropping - an image cropping
IllegalArgumentException
MdmValueTypeExceptionpublic void setCropping(int cropping)
cropping - an image cropping
IllegalArgumentException
MdmValueTypeException
public void setThumbnail(BinaryValue thumbnail)
throws IllegalArgumentException,
MdmValueTypeException
Note: can be used only when creating an image record.
thumbnail - a JPEG/JIFF image of maximum size 2MB
IllegalArgumentException - if the parameter value is invalid
MdmValueTypeException - if there is a mismatch between parameter type and value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2004-2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.