public class SimpleValueFormat extends ValueFormat
Format.Field
Constructor and Description |
---|
SimpleValueFormat(int maxElements)
Formats any scalar and array, by using the server side formatting
and limiting the elements of the array displayed to maxElements.
|
Modifier and Type | Method and Description |
---|---|
protected StringBuffer |
format(Array array,
StringBuffer toAppendTo,
FieldPosition pos)
Formats an array.
|
protected StringBuffer |
format(List<String> data,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a string array.
|
protected StringBuffer |
format(org.epics.util.array.ListBoolean data,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a boolean array.
|
protected StringBuffer |
format(Scalar scalar,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a scalar.
|
protected StringBuffer |
format(VNumberArray array,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a numeric array.
|
format, format, format, getNumberFormat, parseByte, parseByteArray, parseDouble, parseDoubleArray, parseEnum, parseEnumArray, parseFloat, parseFloatArray, parseInt, parseIntArray, parseObject, parseObject, parseShort, parseShortArray, parseString, parseStringArray, setNumberFormat
clone, format, formatToCharacterIterator, parseObject
public SimpleValueFormat(int maxElements)
maxElements
- maximum number of array elements converted to stringprotected StringBuffer format(Scalar scalar, StringBuffer toAppendTo, FieldPosition pos)
ValueFormat
format
in class ValueFormat
scalar
- data object to formattoAppendTo
- output bufferpos
- the field positionprotected StringBuffer format(VNumberArray array, StringBuffer toAppendTo, FieldPosition pos)
array
- the array to formattoAppendTo
- the buffer to append topos
- the position of the fieldprotected StringBuffer format(List<String> data, StringBuffer toAppendTo, FieldPosition pos)
data
- the data to formattoAppendTo
- the buffer to append topos
- the position of the fieldprotected StringBuffer format(org.epics.util.array.ListBoolean data, StringBuffer toAppendTo, FieldPosition pos)
data
- the data to formattoAppendTo
- the buffer to append topos
- the position of the fieldprotected StringBuffer format(Array array, StringBuffer toAppendTo, FieldPosition pos)
ValueFormat
format
in class ValueFormat
array
- data object to formattoAppendTo
- output bufferpos
- the field positionCopyright © 2010–2015. All rights reserved.