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
static Valueparse(String pStrVal, boolean pThrow)
datetimeValue = // quoted datetime string
static Valueparse(String pStrVal)
StringtoQuotedString()

Method Detail

getDateTime

public CIMDateTime getDateTime()
getDateTime

Returns: CIMDateTime

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

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