public class DateTimeValue extends Value implements QuotedValue
Modifier and Type | Method and Description |
---|---|
CIMDateTime |
getDateTime()
getDateTime
|
java.lang.String |
getTypeInfo()
getTypeInfo
|
static Value |
parse(java.lang.String pStrVal) |
static Value |
parse(java.lang.String pStrVal,
boolean pThrow)
datetimeValue = // quoted datetime string
|
java.lang.String |
toQuotedString()
Prints the String representation in a quoted form.
|
java.lang.String |
toString() |
public static Value parse(java.lang.String pStrVal, boolean pThrow) throws java.lang.IllegalArgumentException
pStrVal
- - the dateTime string in an unquoted formpThrow
- Value
or null
if parsing failed and
pThrow
is false
java.lang.IllegalArgumentException
- if parsing failed and pThrow is true.public static Value parse(java.lang.String pStrVal)
pStrVal
- parse(String, boolean)
public CIMDateTime getDateTime()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toQuotedString()
QuotedValue
toQuotedString
in interface QuotedValue
QuotedValue.toQuotedString()
public java.lang.String getTypeInfo()
Value
getTypeInfo
in class Value
Value.getTypeInfo()
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.