enum StringValueType extends Enum<StringValueType> implements ValueType
Enum Constant and Description |
---|
ASCII |
DA |
DS |
DT |
IS |
PN |
STRING |
TEXT |
TM |
UR |
Modifier and Type | Field and Description |
---|---|
(package private) String |
delimiters |
(package private) TemporalType |
temporalType |
Modifier and Type | Method and Description |
---|---|
protected SpecificCharacterSet |
cs(SpecificCharacterSet cs) |
boolean |
isIntValue() |
boolean |
isStringValue() |
boolean |
isTemporalType() |
int |
numEndianBytes() |
boolean |
prompt(Object val,
boolean bigEndian,
SpecificCharacterSet cs,
int maxChars,
StringBuilder sb) |
(package private) static boolean |
prompt(String[] ss,
int maxChars,
StringBuilder sb) |
(package private) static boolean |
prompt(String s,
int maxChars,
StringBuilder sb) |
protected Object |
splitAndTrim(String s,
SpecificCharacterSet cs) |
byte[] |
toBytes(Object val,
SpecificCharacterSet cs) |
Date[] |
toDate(Object val,
TimeZone tz,
boolean ceil,
DatePrecisions precisions) |
Date |
toDate(Object val,
TimeZone tz,
int valueIndex,
boolean ceil,
Date defVal,
DatePrecision precision) |
double |
toDouble(Object val,
boolean bigEndian,
int valueIndex,
double defVal) |
double[] |
toDoubles(Object val,
boolean bigEndian) |
float |
toFloat(Object val,
boolean bigEndian,
int valueIndex,
float defVal) |
float[] |
toFloats(Object val,
boolean bigEndian) |
byte[] |
toggleEndian(byte[] b,
boolean preserve) |
int |
toInt(Object val,
boolean bigEndian,
int valueIndex,
int defVal) |
int[] |
toInts(Object val,
boolean bigEndian) |
String |
toString(Object val,
boolean bigEndian,
int valueIndex,
String defVal) |
Object |
toStrings(Object val,
boolean bigEndian,
SpecificCharacterSet cs) |
Object |
toValue(byte[] b) |
Object |
toValue(Date[] ds,
TimeZone tz,
DatePrecision precision) |
Object |
toValue(double[] ds,
boolean bigEndian) |
Object |
toValue(float[] fs,
boolean bigEndian) |
Object |
toValue(int[] is,
boolean bigEndian) |
Object |
toValue(String[] ss,
boolean bigEndian) |
Object |
toValue(String s,
boolean bigEndian) |
boolean |
useSpecificCharacterSet() |
static StringValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
int |
vmOf(Object val) |
public static final StringValueType ASCII
public static final StringValueType STRING
public static final StringValueType TEXT
public static final StringValueType UR
public static final StringValueType DA
public static final StringValueType DT
public static final StringValueType TM
public static final StringValueType PN
public static final StringValueType DS
public static final StringValueType IS
final String delimiters
final TemporalType temporalType
public static StringValueType[] values()
for (StringValueType c : StringValueType.values()) System.out.println(c);
public static StringValueType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isStringValue()
isStringValue
in interface ValueType
public boolean isIntValue()
isIntValue
in interface ValueType
public boolean isTemporalType()
isTemporalType
in interface ValueType
public int numEndianBytes()
numEndianBytes
in interface ValueType
public byte[] toggleEndian(byte[] b, boolean preserve)
toggleEndian
in interface ValueType
public boolean useSpecificCharacterSet()
useSpecificCharacterSet
in interface ValueType
protected SpecificCharacterSet cs(SpecificCharacterSet cs)
public byte[] toBytes(Object val, SpecificCharacterSet cs)
public Object toStrings(Object val, boolean bigEndian, SpecificCharacterSet cs)
protected Object splitAndTrim(String s, SpecificCharacterSet cs)
public Date toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision)
public Date[] toDate(Object val, TimeZone tz, boolean ceil, DatePrecisions precisions)
public Object toValue(Date[] ds, TimeZone tz, DatePrecision precision)
public boolean prompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb)
static boolean prompt(String s, int maxChars, StringBuilder sb)
static boolean prompt(String[] ss, int maxChars, StringBuilder sb)
Copyright © 2017 dcm4che.org. All rights reserved.