public enum EMimeContentType extends Enum<EMimeContentType> implements IHasID<String>
| Enum Constant and Description |
|---|
_STAR |
APPLICATION |
AUDIO |
EXAMPLE |
IMAGE |
MESSAGE |
MODEL |
MULTIPART |
TEXT |
VIDEO |
| Modifier and Type | Method and Description |
|---|---|
MimeType |
buildMimeType(String sContentSubType)
Build a new
MimeType based on this MIME content type and the
provided sub type. |
static EMimeContentType |
getFromIDOrNull(String sID) |
String |
getID()
Get the unique ID of this object.
|
String |
getText() |
boolean |
isTypeOf(String sMimeType)
Check if the passed MIME type has the same content type as this
|
static EMimeContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EMimeContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EMimeContentType APPLICATION
public static final EMimeContentType AUDIO
public static final EMimeContentType EXAMPLE
public static final EMimeContentType IMAGE
public static final EMimeContentType MESSAGE
public static final EMimeContentType MODEL
public static final EMimeContentType MULTIPART
public static final EMimeContentType TEXT
public static final EMimeContentType VIDEO
public static final EMimeContentType _STAR
public static EMimeContentType[] values()
for (EMimeContentType c : EMimeContentType.values()) System.out.println(c);
public static EMimeContentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null@Nonnull @Nonempty public String getID()
IHasIDString than the
returned value must match an XML NMToken expression (so e.g. no ':' in the
ID)!@Nonnull public MimeType buildMimeType(@Nonnull@Nonempty String sContentSubType)
MimeType based on this MIME content type and the
provided sub type.sContentSubType - The content sub type to append. May neither be null nor
empty.null.public boolean isTypeOf(@Nullable String sMimeType)
sMimeType - The MIME type string to be checked. May be null.true if the passed MIME type has this content type,
false otherwise@Nullable public static EMimeContentType getFromIDOrNull(@Nullable String sID)
Copyright © 2006–2014 phloc systems. All rights reserved.