com.arsdigita.mimetypes
Class TextMimeType

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.mimetypes.MimeType
          extended bycom.arsdigita.mimetypes.TextMimeType

public class TextMimeType
extends MimeType

A textual mime-type

Version:
$Revision: #7 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Stanislav Freidin (sfreidin@arsdigita.com)

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

versionId

public static final String versionId
See Also:
Constant Field Values

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
See Also:
Constant Field Values

IS_INSO

public static final String IS_INSO
See Also:
Constant Field Values

TEXT_PREFIX

public static final String TEXT_PREFIX
See Also:
Constant Field Values

MIME_TEXT_HTML

public static final String MIME_TEXT_HTML
See Also:
Constant Field Values
Constructor Detail

TextMimeType

public TextMimeType(OID oid)
             throws DataObjectNotFoundException
Load an existing TextMimeType.


TextMimeType

public TextMimeType(DataObject obj)
Construct a new TextMimeType from the given DataObject. All subclasses must implement this constructor.


TextMimeType

public TextMimeType(String type,
                    String mimeType)
Construct a new MimeType with a given object type. All subclasses must implement this constructor.

Method Detail

getBaseDataObjectType

public String getBaseDataObjectType()
Return the base data object type for this mime-type

Overrides:
getBaseDataObjectType in class MimeType

allowINSOConvert

public Boolean allowINSOConvert()
Return true if mimeType can be converted to HTML using inso filter.

Returns:
true if the mime type can be converted, false otherwise

setAllowINSOConvert

public void setAllowINSOConvert(Boolean canConvert)
Set whether mimeType can be converted to HTML using inso filter.

Parameters:
canConvert - true if the mime type can be converted, false otherwise

setAllowINSOConvert

public void setAllowINSOConvert(boolean canConvert)
Set whether mimeType can be converted to HTML using inso filter.

Parameters:
canConvert - true if the mime type can be converted, false otherwise


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC