org.openfast.util
Class Util
java.lang.Object
org.openfast.util.Util
public class Util
- extends java.lang.Object
|
Constructor Summary |
Util()
|
|
Method Summary |
static StringValue |
applyDifference(StringValue baseValue,
TwinValue diffValue)
|
static java.lang.String |
collectionToString(java.util.Collection set)
|
static java.lang.String |
collectionToString(java.util.Collection set,
java.lang.String sep)
|
static ComposedScalar |
composedDecimal(QName name,
Operator exponentOp,
ScalarValue exponentVal,
Operator mantissaOp,
ScalarValue mantissaVal,
boolean optional)
|
static java.util.Date |
date(int year,
int month,
int day)
|
static int |
dateToInt(java.util.Date date)
|
static ScalarValue |
getDifference(StringValue newValue,
StringValue priorValue)
|
static boolean |
isBiggerThanInt(long value)
|
static int |
millisecondsSinceMidnight(java.util.Date date)
|
static int |
timestampToInt(java.util.Date date)
|
static int |
timeToInt(java.util.Date date)
|
static int |
toInt(java.lang.String attribute)
|
static java.util.Date |
toTimestamp(long value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
isBiggerThanInt
public static boolean isBiggerThanInt(long value)
getDifference
public static ScalarValue getDifference(StringValue newValue,
StringValue priorValue)
applyDifference
public static StringValue applyDifference(StringValue baseValue,
TwinValue diffValue)
collectionToString
public static java.lang.String collectionToString(java.util.Collection set)
collectionToString
public static java.lang.String collectionToString(java.util.Collection set,
java.lang.String sep)
millisecondsSinceMidnight
public static int millisecondsSinceMidnight(java.util.Date date)
date
public static java.util.Date date(int year,
int month,
int day)
- Parameters:
year - the year yyyymonth - 1-based index of monthday - day of month
- Returns:
- the corresponding date
dateToInt
public static int dateToInt(java.util.Date date)
timeToInt
public static int timeToInt(java.util.Date date)
timestampToInt
public static int timestampToInt(java.util.Date date)
toTimestamp
public static java.util.Date toTimestamp(long value)
composedDecimal
public static ComposedScalar composedDecimal(QName name,
Operator exponentOp,
ScalarValue exponentVal,
Operator mantissaOp,
ScalarValue mantissaVal,
boolean optional)
toInt
public static int toInt(java.lang.String attribute)
Copyright © 2006-2008 The LaSalle Technology Group, LLC. All Rights Reserved.