com.pmease.quickbuild.plugin.report.engine.datatype
Class DurationType
java.lang.Object
com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
com.pmease.quickbuild.plugin.report.engine.datatype.AbstractNumericType
com.pmease.quickbuild.plugin.report.engine.datatype.LongType
com.pmease.quickbuild.plugin.report.engine.datatype.DurationType
- All Implemented Interfaces:
- DataType, TypedObject, java.io.Serializable
public class DurationType
- extends LongType
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
asString(java.lang.Object value,
java.lang.String pattern,
java.util.Locale locale)
|
java.lang.Object |
fromString(java.lang.String str,
java.lang.String pattern,
java.util.Locale locale)
|
java.lang.String |
getDefaultPattern()
|
protected org.joda.time.format.PeriodFormatter |
getFormatter(java.lang.String pattern,
java.util.Locale locale)
|
java.lang.String |
getType()
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType |
asString, asString, compare, equals, fromString, fromString, fromXML, getNodeType, getReadFormat, getWriteFormat, hashCode, isCollectionType, isEqual, isIdType, newInstance, setNodeType, toString, toXML |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FMT_WORD
public static final java.lang.String FMT_WORD
- See Also:
- Constant Field Values
FMT_ISO
public static final java.lang.String FMT_ISO
- See Also:
- Constant Field Values
FMT_SHORT_WORD
public static final java.lang.String FMT_SHORT_WORD
- See Also:
- Constant Field Values
DurationType
public DurationType()
getType
public java.lang.String getType()
- Specified by:
getType
in interface TypedObject
- Overrides:
getType
in class LongType
asString
public java.lang.String asString(java.lang.Object value,
java.lang.String pattern,
java.util.Locale locale)
- Specified by:
asString
in interface DataType
- Overrides:
asString
in class LongType
getFormatter
protected org.joda.time.format.PeriodFormatter getFormatter(java.lang.String pattern,
java.util.Locale locale)
getDefaultPattern
public java.lang.String getDefaultPattern()
- Specified by:
getDefaultPattern
in interface DataType
- Overrides:
getDefaultPattern
in class LongType
fromString
public java.lang.Object fromString(java.lang.String str,
java.lang.String pattern,
java.util.Locale locale)
- Specified by:
fromString
in interface DataType
- Overrides:
fromString
in class LongType
main
public static void main(java.lang.String[] args)
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.