public class FieldFormat extends Object
Constructor and Description |
---|
FieldFormat() |
Modifier and Type | Method and Description |
---|---|
static Object |
getValue(FieldDesc fieldDesc,
String s)
Return an object for the given field description by parsing the given string.
|
static ValueRange |
getValueRange(FieldDesc fieldDesc,
String s)
Return a ValueRange object representing a range of values for the given
field by parsing the given string.
|
public static Object getValue(FieldDesc fieldDesc, String s)
fieldDesc
- describes the fields
- the value in string formatpublic static ValueRange getValueRange(FieldDesc fieldDesc, String s)
fieldDesc
- describes the fields
- the value range in string format, which may be encoded as two
values: "min max", as one value: "value" (For numerical types,
tests for equality, for Strings, the start of the string). The
symbols ">", or "<" may be used in the string for numerical types,
to indicate that the value should be greater than or less than
the (noninclusive) given values, for example: ">0.0 <1.0".
If there are two values, they should be separated by a single space
and the first value should be the minimum value (inclusive,
unless ">" was specified).Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.