Class SetValueFormatter
java.lang.Object
org.monte.media.tiff.SetValueFormatter
- All Implemented Interfaces:
ValueFormatter
Formats integer values as a set.
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescriptionFormat(Object value) Describes the data.Formats the specified value.prettyFormat(Object value) Formats the specified value in a human readable format.
-
Constructor Details
-
SetValueFormatter
Creates a new enumeration. The enumeration consists of a list of String=Integer, String=Integer Integer, or String=String pairs.- String=Integer. If only one integer is provided, it specifies the bits which must be set.
- String=Integer Integer. If two integers are provided, the second value specifies a bit mask.
- String=String. If a String is provided, it specifies the String that must be set.
-
-
Method Details
-
format
Description copied from interface:ValueFormatterFormats the specified value. If the value is of the desired type, it is replaced by an object which can be handled easier. For example, an integer value by a descriptive String.- Specified by:
formatin interfaceValueFormatter
-
prettyFormat
Description copied from interface:ValueFormatterFormats the specified value in a human readable format.- Specified by:
prettyFormatin interfaceValueFormatter
-
descriptionFormat
Description copied from interface:ValueFormatterDescribes the data. Returns null if no description is available.- Specified by:
descriptionFormatin interfaceValueFormatter
-