Enum Class Codes.Mime
- All Implemented Interfaces:
Serializable, Comparable<Codes.Mime>, java.lang.constant.Constable
- Enclosing class:
Codes
MIME:BT-125-1
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionapplication/jsonapplication/pdfapplication/vnd.oasis.opendocument.spreadsheetapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/xmlCustom entry whose member "value" gets updated to "value" on calls tofromString(String value)Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)image/jpegimage/pngtext/csvtext/xml -
Method Summary
Modifier and TypeMethodDescriptionstatic Codes.MimefromString(String value) Convert a String to a Mime.getValue()Get the "Value" property valuestatic booleanisNativeValue(String value) Tests ifvalueOf(value)would return a non custom enum valuetoString()Returns a string representation of the Mime.static Codes.MimeReturns the enum constant of this class with the specified name.static Codes.Mime[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
application_pdf
application/pdf -
image_png
image/png -
image_jpeg
image/jpeg -
text_csv
text/csv -
application_vnd_openxmlformats_officedocument_spreadsheetml_sheet
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet -
application_vnd_oasis_opendocument_spreadsheet
application/vnd.oasis.opendocument.spreadsheet -
application_xml
application/xml -
text_xml
text/xml -
application_json
application/json -
CustomEntry1
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value) -
CustomEntry2
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value) -
CustomEntry3
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value) -
CustomEntry4
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value) -
CustomEntry5
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value) -
CustomEntry6
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value) -
CustomEntry7
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value) -
CustomEntry8
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value) -
CustomEntry9
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value) -
CustomEntry10
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
Returns a string representation of the Mime.- Overrides:
toStringin classEnum<Codes.Mime>- Returns:
- a string representation of the Mime.
-
fromString
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
Tests ifvalueOf(value)would return a non custom enum value- Returns:
- true if if
valueOf(value)would return a non custom enum value
-