Class PickValueFormatter
Formats a pick-report value as S-98 15.1 asks: numbers without padding
and followed by their unit of measure, and dates as DD-MMM-YYYY
with English month abbreviations. The value type and unit come from the
feature catalogue's simple attribute (S-100 Part 5).
public static class PickValueFormatter
- Inheritance
-
PickValueFormatter
- Inherited Members
Methods
Format(SimpleAttribute, string)
The display form of value for an attribute of
attribute's value type, or null when the
value reads as encoded (text, listed values, values that don't parse).
public static string? Format(SimpleAttribute attribute, string value)
Parameters
attributeSimpleAttributeThe feature catalogue's simple attribute.
valuestringThe encoded value.
Returns
- string
The display value, or
null.
FormatDate(string)
An S-100 date (CCYYMMDD, or CCYY-MM-DD) as
DD-MMM-YYYY (16-AUG-2012). A truncated date
(S-100 S100_TruncatedDate, dashes for the parts left out) keeps
the parts it has: ----03-- reads MAR, 1996----
reads 1996, ----0316 reads
16-MAR. Returns null when value isn't a date.
public static string? FormatDate(string value)
Parameters
valuestringThe encoded date.
Returns
- string
The display date, or
null.