Package wt.content

Class DataFormat

java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.fc._Item
wt.fc.Item
wt.content._DataFormat
wt.content.DataFormat
All Implemented Interfaces:
Externalizable, Serializable, wt.access._AccessControlled, wt.access._PolicyAccessControlled, wt.access._SecurityLabeled, AccessControlled, wt.access.PolicyAccessControlled, SecurityLabeled, wt.admin._DomainAdministered, DomainAdministered, wt.fc._Identified, wt.fc._NetFactor, wt.fc._ObjectMappable, wt.fc._Persistable, wt.fc.adminlock._AdministrativelyLockable, AdministrativelyLockable, wt.fc.BusinessInformation, Identified, NetFactor, ObjectMappable, Persistable, DisplayIdentification

@GenAsPersistable(superClass=Item.class,interfaces={wt.fc.BusinessInformation.class,Identified.class},versions=-3870827093848100209L,dataType=ADMIN,properties={@GeneratedProperty(name="formatName",type=java.lang.String.class,javaDoc="The displayable format name for this object",accessors=@PropertyAccessors(setAccess=PROTECTED),constraints=@PropertyConstraints(upperLimit=60,required=true),columnProperties=@ColumnProperties(unique=true)),@GeneratedProperty(name="mimeType",type=java.lang.String.class,javaDoc="The MIME type for this format. Content will be downloaded with mime type. You can configure your browser to deal with different MIME types. See your browser documentation for more information on how to do this."),@GeneratedProperty(name="description",type=java.lang.String.class,javaDoc="Descriptive string for this format.",constraints=@PropertyConstraints(upperLimit=2000)),@GeneratedProperty(name="indexable",type=boolean.class,javaDoc="True if this DataFormat type is indexable by the system."),@GeneratedProperty(name="fileFormatOnly",type=boolean.class,initialValue="false",javaDoc="True if this mimeType is only applicable to ApplicationData objects. This would be true for formats like \"Microsoft Word\", \"Postscript\" etc. It would be false for \"URL Link\" and \"File Set\"."),@GeneratedProperty(name="standardIconStr",type=java.lang.String.class,javaDoc="A string that points to a representative icon for this format type. The default icon for example is wt/clients/images/generic.gif.",constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="extensions",type=java.util.Vector.class,columnProperties=@ColumnProperties(columnType=SMALL_BLOB))}) public class DataFormat extends wt.content._DataFormat
Populated with all the allowable mime-types and displayed FormatNames in the system. The system will not run correctly unless the initial set of this is populated. You need to be an administrator to create these objects. Note that the formatName is contrained by the DataFormatIdentity class and must be unique. You may not extend this class.

Use the newDataFormat static factory method(s), not the DataFormat constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
  • Field Summary

    Fields inherited from class wt.content._DataFormat

    DESCRIPTION, EXTENSIONS, EXTERNALIZATION_VERSION_UID, FILE_FORMAT_ONLY, FORMAT_NAME, INDEXABLE, MIME_TYPE, STANDARD_ICON_STR

    Fields inherited from class wt.fc.Item

    SIMPLE_X10_UID, VERSION_40_UID, VERSION_51_UID

    Fields inherited from class wt.fc._WTObject

    CREATE_TIMESTAMP, MODIFY_TIMESTAMP

    Fields inherited from interface wt.fc.adminlock._AdministrativelyLockable

    ADMINISTRATIVE_LOCK

    Fields inherited from interface wt.admin._DomainAdministered

    DOMAIN_REF, INHERITED_DOMAIN

    Fields inherited from interface wt.fc._Persistable

    PERSIST_INFO

    Fields inherited from interface wt.access._SecurityLabeled

    SECURITY_LABELS

    Fields inherited from interface wt.fc.BusinessInformation

    BUSINESS_TYPE, IDENTITY

    Fields inherited from interface wt.identity.DisplayIdentification

    DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE

    Fields inherited from interface wt.fc.Persistable

    IDENTITY, TYPE

    Fields inherited from interface wt.access.SecurityLabeled

    SECURITY_LABELS_INTERNAL_VALUE
  • Method Summary

    Methods inherited from class wt.content._DataFormat

    getClassInfo, getConceptualClassname, getDescription, getExtensions, getFormatName, getMimeType, getStandardIconStr, getType, isFileFormatOnly, isIndexable, readExternal, readExternal, readVersion, setDescription, setExtensions, setFileFormatOnly, setFormatName, setIndexable, setMimeType, setStandardIconStr, super_readExternal_DataFormat, super_readVersion_DataFormat, super_writeExternal_DataFormat, writeExternal, writeExternal

    Methods inherited from class wt.fc._Item

    getAdministrativeLock, getDomainRef, getSecurityLabels, isInheritedDomain, readVersion, setAdministrativeLock, setDomainRef, setInheritedDomain, setSecurityLabels, super_readExternal_Item, super_readVersion_Item, super_writeExternal_Item

    Methods inherited from class wt.fc._WTObject

    equals, getCreateTimestamp, getModifyTimestamp, getPersistInfo, hashCode, readVersion, setPersistInfo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface wt.fc._Persistable

    getPersistInfo, setPersistInfo

    Methods inherited from interface wt.fc.Persistable

    checkAttributes