|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsky.catalog.FieldFormat
public class FieldFormat
This utility class provides a method to scan specially formatted values from a string and return an object of the correct type.
| Constructor Summary | |
|---|---|
FieldFormat()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
getValue(FieldDesc fieldDesc,
java.lang.String s)
Return an object for the given field description by parsing the given string. |
static ValueRange |
getValueRange(FieldDesc fieldDesc,
java.lang.String s)
Return a ValueRange object representing a range of values for the given field by parsing the given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldFormat()
| Method Detail |
|---|
public static java.lang.Object getValue(FieldDesc fieldDesc,
java.lang.String s)
fieldDesc - describes the fields - the value in string format
public static ValueRange getValueRange(FieldDesc fieldDesc,
java.lang.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).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||