org.sblim.cimclient.internal.uri

Class DateTimeValue

public class DateTimeValue extends Value implements QuotedValue

Class DateTimeValue is parses and encapsulates a datetime.
Method Summary
CIMDateTimegetDateTime()
getDateTime
StringgetTypeInfo()
static Valueparse(String pStrVal, boolean pThrow)
datetimeValue = // quoted datetime string
static Valueparse(String pStrVal)
StringtoQuotedString()
StringtoString()

Method Detail

getDateTime

public CIMDateTime getDateTime()
getDateTime

Returns: CIMDateTime

getTypeInfo

public String getTypeInfo()

See Also: getTypeInfo

parse

public static Value parse(String pStrVal, boolean pThrow)
datetimeValue = // quoted datetime string

Parameters: pStrVal - the dateTime string in an unquoted form pThrow

Returns: Value or null if parsing failed and pThrow is false

Throws: IllegalArgumentException if parsing failed and pThrow is true.

parse

public static Value parse(String pStrVal)

Parameters: pStrVal

Returns: a Value or null if parsing failed.

See Also: DateTimeValue

toQuotedString

public String toQuotedString()

See Also: toQuotedString

toString

public String toString()

See Also: java.lang.Object#toString()

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.