|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.datastructures.EnumClass<String>
com.uwyn.rife.cmf.MimeType
public abstract class MimeType
This is a typed enumeration of all the mime types that the content management framework specifically knows about.
The types that are defined here can be validated and transformed.
| Field Summary | |
|---|---|
static MimeType |
APPLICATION_XHTML
The application/xhtml+xml mime type. |
static MimeType |
IMAGE_GIF
The image/gif mime type. |
static MimeType |
IMAGE_JPEG
The image/jpeg mime type. |
static MimeType |
IMAGE_PNG
The image/png mime type. |
static MimeType |
RAW
A generic mime type indicating that the content should be stored as raw data without any mime-type related processing. |
static MimeType |
TEXT_PLAIN
The text/plain mime type. |
static MimeType |
TEXT_XML
The text/plain mime type. |
| Fields inherited from class com.uwyn.rife.datastructures.EnumClass |
|---|
mIdentifier |
| Method Summary | |
|---|---|
abstract Formatter |
getFormatter()
Returns an instance of the formatter for this mime type. |
static MimeType |
getMimeType(String identifier)
Returns the MimeType instance that corresponds to a given
textual identifier. |
abstract CmfPropertyValidationRule |
getValidationRule(ConstrainedProperty constrainedProperty)
Constructs and returns a CMF-specific validation rule that is able to validate data for this mime type. |
| Methods inherited from class com.uwyn.rife.datastructures.EnumClass |
|---|
equals, getIdentifiers, getMember, getMembers, hashCode, registerType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final MimeType APPLICATION_XHTML
application/xhtml+xml mime type.
public static final MimeType IMAGE_GIF
image/gif mime type.
public static final MimeType IMAGE_JPEG
image/jpeg mime type.
public static final MimeType IMAGE_PNG
image/png mime type.
public static final MimeType TEXT_PLAIN
text/plain mime type.
public static final MimeType TEXT_XML
text/plain mime type.
public static final MimeType RAW
| Method Detail |
|---|
public abstract CmfPropertyValidationRule getValidationRule(ConstrainedProperty constrainedProperty)
constrainedProperty - an instance of the property for which the
validation rule has to be built
public abstract Formatter getFormatter()
public static MimeType getMimeType(String identifier)
MimeType instance that corresponds to a given
textual identifier.
identifier - the identifier of the mime type that has to be
retrieved
MimeType; or
null if the MimeType is not supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||