de.bsvrz.dav.daf.communication.dataRepresentation.data.util
Class AttributeValues
java.lang.Object
de.bsvrz.dav.daf.communication.dataRepresentation.data.util.AttributeValues
public class AttributeValues
- extends Object
Klasse, die Hilfsmethoden zum Zugriff und zur Konvertierung von Attributwerten zur Verfügung stellt.
- Author:
- Roland Schmitz (rs), Kappich Systemberatung
Method Summary |
private static long |
absoluteTimeToMillis(String text)
|
private static void |
checkRange(IntegerAttributeType type,
long unscaledValue)
|
private static void |
checkText(StringAttributeType stringAttributeType,
String textValue)
|
static void |
checkValue(AttributeType attributeType,
String textValue,
ObjectLookup objectLookup)
|
static boolean |
hasUndefinedValue(AttributeType attributeType)
|
private static long |
locationDistanceToUnscaled(String text)
|
private static long |
relativeTimeToMillis(String text)
|
private static long |
scaledToUnscaled(IntegerAttributeType type,
Number number)
|
private static long |
scaledToUnscaled(String text,
IntegerAttributeType type)
|
private static IntegerValueState |
stateTextToUnscaled(IntegerAttributeType type,
String text)
|
private static double |
textToDouble(DoubleAttributeType doubleAttributeType,
String textValue)
|
private static long |
textToMillis(TimeAttributeType timeAttributeType,
String textValue)
|
private static SystemObject |
textToReference(ReferenceAttributeType referenceAttributeType,
String textValue,
ObjectLookup lookup)
|
private static long |
textToUnscaled(IntegerAttributeType type,
String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_locationDistancePattern
private static Pattern _locationDistancePattern
_parseNumberFormat
private static final NumberFormat _parseNumberFormat
_relNumberPattern
private static final String _relNumberPattern
- See Also:
- Constant Field Values
_relNamePattern
private static final String _relNamePattern
- See Also:
- Constant Field Values
_relNumberNamePattern
private static final String _relNumberNamePattern
- See Also:
- Constant Field Values
_relNameNumberPattern
private static final String _relNameNumberPattern
- See Also:
- Constant Field Values
_relPattern
private static final String _relPattern
- See Also:
- Constant Field Values
_parseDateFormats
private static final DateFormat[] _parseDateFormats
AttributeValues
public AttributeValues()
checkValue
public static void checkValue(AttributeType attributeType,
String textValue,
ObjectLookup objectLookup)
textToMillis
private static long textToMillis(TimeAttributeType timeAttributeType,
String textValue)
relativeTimeToMillis
private static long relativeTimeToMillis(String text)
absoluteTimeToMillis
private static long absoluteTimeToMillis(String text)
textToReference
private static SystemObject textToReference(ReferenceAttributeType referenceAttributeType,
String textValue,
ObjectLookup lookup)
checkText
private static void checkText(StringAttributeType stringAttributeType,
String textValue)
textToUnscaled
private static long textToUnscaled(IntegerAttributeType type,
String text)
scaledToUnscaled
private static long scaledToUnscaled(String text,
IntegerAttributeType type)
locationDistanceToUnscaled
private static long locationDistanceToUnscaled(String text)
stateTextToUnscaled
private static IntegerValueState stateTextToUnscaled(IntegerAttributeType type,
String text)
scaledToUnscaled
private static long scaledToUnscaled(IntegerAttributeType type,
Number number)
checkRange
private static void checkRange(IntegerAttributeType type,
long unscaledValue)
textToDouble
private static double textToDouble(DoubleAttributeType doubleAttributeType,
String textValue)
hasUndefinedValue
public static boolean hasUndefinedValue(AttributeType attributeType)