Package com.fourjs.report.facturx
Enum Codes.Mime
- java.lang.Object
-
- java.lang.Enum<Codes.Mime>
-
- com.fourjs.report.facturx.Codes.Mime
-
- All Implemented Interfaces:
Serializable,Comparable<Codes.Mime>
- Enclosing class:
- Codes
public static enum Codes.Mime extends Enum<Codes.Mime>
MIME:BT-125-1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description application_pdfapplication/pdfapplication_vnd_oasis_opendocument_spreadsheetapplication/vnd.oasis.opendocument.spreadsheetapplication_vnd_openxmlformats_officedocument_spreadsheetml_sheetapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetCustomEntry1Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)CustomEntry10Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)CustomEntry2Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)CustomEntry3Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)CustomEntry4Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)CustomEntry5Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)CustomEntry6Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)CustomEntry7Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)CustomEntry8Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)CustomEntry9Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)image_jpegimage/jpegimage_pngimage/pngtext_csvtext/csv
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Codes.MimefromString(String value)Convert a String to a Mime.StringgetValue()Get the "Value" property valuestatic booleanisNativeValue(String value)Tests ifvalueOf(value)would return a non custom enum valueStringtoString()Returns a string representation of the Mime.static Codes.MimevalueOf(String name)Returns the enum constant of this type with the specified name.static Codes.Mime[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
application_pdf
public static final Codes.Mime application_pdf
application/pdf
-
image_png
public static final Codes.Mime image_png
image/png
-
image_jpeg
public static final Codes.Mime image_jpeg
image/jpeg
-
text_csv
public static final Codes.Mime text_csv
text/csv
-
application_vnd_openxmlformats_officedocument_spreadsheetml_sheet
public static final Codes.Mime application_vnd_openxmlformats_officedocument_spreadsheetml_sheet
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
-
application_vnd_oasis_opendocument_spreadsheet
public static final Codes.Mime application_vnd_oasis_opendocument_spreadsheet
application/vnd.oasis.opendocument.spreadsheet
-
CustomEntry1
public static final Codes.Mime CustomEntry1
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry2
public static final Codes.Mime CustomEntry2
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry3
public static final Codes.Mime CustomEntry3
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry4
public static final Codes.Mime CustomEntry4
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry5
public static final Codes.Mime CustomEntry5
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry6
public static final Codes.Mime CustomEntry6
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry7
public static final Codes.Mime CustomEntry7
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry8
public static final Codes.Mime CustomEntry8
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry9
public static final Codes.Mime CustomEntry9
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry10
public static final Codes.Mime CustomEntry10
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
-
Method Detail
-
values
public static Codes.Mime[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Codes.Mime c : Codes.Mime.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Codes.Mime valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
Get the "Value" property value- Returns:
- value
-
toString
public String toString()
Returns a string representation of the Mime.- Overrides:
toStringin classEnum<Codes.Mime>- Returns:
- a string representation of the Mime.
-
fromString
public static Codes.Mime fromString(String value)
Convert a String to a Mime.
Throws aIllegalArgumentExceptionif the value doesn't exist unless the system property "facturx.laxenums" is set to true. In the latter case, a custom value is returned if available.- Returns:
- a Mime that represents the String.
-
isNativeValue
public static boolean isNativeValue(String value)
Tests ifvalueOf(value)would return a non custom enum value- Returns:
- true if if
valueOf(value)would return a non custom enum value
-
-