| package org.eclipse.osbp.ui.api.customfields; |
| |
| import java.util.List; |
| |
| import javax.activation.MimeType; |
| |
| public interface IBlobTyping { |
| public final static String IMAGE_MIME_TYPE_PREFIX = "image"; |
| // MimeTypeIDs |
| public final static int PDF_MIME_TYPE_ID = 7; |
| public final static int WORD_DOC_MIME_TYPE_ID = 8; |
| public final static int WORD_DOCX_MIME_TYPE_ID = 9; |
| public final static int EXCEL_XLS_MIME_TYPE_ID = 10; |
| public final static int EXCEL_XLSX_MIME_TYPE_ID = 11; |
| /** |
| * Provides the defined mime type version. |
| * |
| * @return the defined mime type version |
| * @see MimeType |
| */ |
| String getMimeTypeVersion(); |
| /** |
| * Provides the defined content transfer encoding of the mime type. |
| * |
| * @return the defined content transfer encoding |
| * @see MimeType |
| */ |
| String getMimeTypeContentTransferEncoding(); |
| /** |
| * Provides a list of all the defined content type names of the mime type |
| * object. |
| * |
| * @return a list of all the defined content type names |
| * @see ContentType |
| */ |
| List<String> getMimeTypeContentTypeNames(); |
| /** |
| * Provides the content type id for an individual position within the list |
| * of all the defined content type objects of the mime type object. |
| * |
| * @param index |
| * @return the content type id or '-1' if not found |
| * @see ContentType |
| */ |
| int getMimeTypeContentTypeIdByListIndex(int index); |
| /** |
| * Provides the content type name for an individual position within the list |
| * of all the defined content type objects of the mime type object. |
| * |
| * @param index |
| * @return the content type name as;@link String} or ""(blank) if not found |
| * @see ContentType |
| */ |
| String getMimeTypeContentTypeByListIndex(int index); |
| /** |
| * Provides the content type name for a specific content type id. |
| * |
| * @param contentTypeId |
| * @return the content type name as;@link String} or ""(blank) if not found |
| * @see ContentType |
| */ |
| String getMimeTypeContentTypeById(int contentTypeId); |
| /** |
| * Provides the content type id for a specific content type name. |
| * |
| * @param contentTypeStr |
| * @return the content type id or '-1' if not found |
| * @see ContentType |
| */ |
| int getMimeTypeContentTypeId(String contentTypeStr); |
| /** |
| * Provides the defined default normalizer resolution id. |
| * |
| * @return default normalizer resolution id |
| */ |
| int getNormalizerDefaultResolutionId(); |
| /** |
| * Provides the normalizer resolution id for an individual position within |
| * the list of all the defined resolution objects of the normalizer object. |
| * |
| * @param index |
| * @return the normalizer resolution id or '-1' if not found |
| */ |
| int getNormalizerResolutionIdByListIndex(int index); |
| /** |
| * Provides the normalizer resolution name for an individual position within |
| * the list of all the defined resolution objects of the normalizer object. |
| * |
| * @param index |
| * @return the normalizer resolution name as;@link String} or ""(blank) if |
| * not found |
| */ |
| String getNormalizerResolutionNameByListIndex(int index); |
| /** |
| * Provides the normalizer resolution for an individual position within the |
| * list of all the defined resolution objects of the normalizer object. |
| * |
| * @param index |
| * @return the normalizer resolution as;@link String} or ""(blank) if not |
| * found |
| */ |
| String getNormalizerResolutionByListIndex(int index); |
| /** |
| * Provides the normalizer resolution id for a specific normalizer |
| * resolution. |
| * |
| * @param resolutionStr |
| * @return the normalizer resolution id or '-1' if not found |
| */ |
| int getNormalizerResolutionIdByName(String resolutionStr); |
| /** |
| * Provides the normalizer resolution for a specific normalizer resolution |
| * id. |
| * |
| * @param resolutionId |
| * @return the normalizer resolution as;@link String} or ""(blank) if not |
| * found |
| */ |
| String getNormalizerResolutionById(int resolutionId); |
| } |