|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.mimetypes.MimeType
com.arsdigita.mimetypes.TextMimeType
A textual mime-type
| Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
IS_INSO
|
static String |
MIME_TEXT_HTML
|
static String |
TEXT_PREFIX
|
static String |
versionId
|
| Fields inherited from class com.arsdigita.mimetypes.MimeType |
ALL_FILE_EXTENSIONS, FILE_EXTENSION, JAVA_CLASS, LABEL, MIME_TYPE, OBJECT_TYPE |
| Constructor Summary | |
TextMimeType(DataObject obj)
Construct a new TextMimeType from the given DataObject. |
|
TextMimeType(OID oid)
Load an existing TextMimeType. |
|
TextMimeType(String type,
String mimeType)
Construct a new MimeType with a given object type. |
|
| Method Summary | |
Boolean |
allowINSOConvert()
Return true if mimeType can be converted to HTML using inso filter. |
String |
getBaseDataObjectType()
Return the base data object type for this mime-type |
void |
setAllowINSOConvert(boolean canConvert)
Set whether mimeType can be converted to HTML using inso filter. |
void |
setAllowINSOConvert(Boolean canConvert)
Set whether mimeType can be converted to HTML using inso filter. |
| Methods inherited from class com.arsdigita.mimetypes.MimeType |
beforeSave, createMimeType, getAllFileExtensions, getAllMimeTypes, getFileExtension, getJavaClass, getLabel, getMimeType, getPrefix, getSpecificObjectType, guessMimeType, guessMimeTypeFromFile, hasFileExtension, loadMimeType, searchMimeTypes, setFileExtension, setJavaClass, setLabel, setMimeType, setSpecificObjectType, specialize |
| Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, initialize, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String versionId
public static final String BASE_DATA_OBJECT_TYPE
public static final String IS_INSO
public static final String TEXT_PREFIX
public static final String MIME_TEXT_HTML
| Constructor Detail |
public TextMimeType(OID oid)
throws DataObjectNotFoundException
TextMimeType.
public TextMimeType(DataObject obj)
TextMimeType from the given DataObject.
All subclasses must implement this constructor.
public TextMimeType(String type,
String mimeType)
MimeType with a given object type.
All subclasses must implement this constructor.
| Method Detail |
public String getBaseDataObjectType()
getBaseDataObjectType in class MimeTypepublic Boolean allowINSOConvert()
public void setAllowINSOConvert(Boolean canConvert)
canConvert - true if the mime type can be converted, false otherwisepublic void setAllowINSOConvert(boolean canConvert)
canConvert - true if the mime type can be converted, false otherwise
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||