Package org.sblim.cimclient.internal.uri
Class DateTimeValue
- java.lang.Object
-
- org.sblim.cimclient.internal.uri.Value
-
- org.sblim.cimclient.internal.uri.DateTimeValue
-
- All Implemented Interfaces:
QuotedValue
public class DateTimeValue extends Value implements QuotedValue
Class DateTimeValue is parses and encapsulates a datetime.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CIMDateTimegetDateTime()getDateTimejava.lang.StringgetTypeInfo()getTypeInfostatic Valueparse(java.lang.String pStrVal)static Valueparse(java.lang.String pStrVal, boolean pThrow)datetimeValue = // quoted datetime stringjava.lang.StringtoQuotedString()Prints the String representation in a quoted form.java.lang.StringtoString()
-
-
-
Method Detail
-
parse
public static Value parse(java.lang.String pStrVal, boolean pThrow) throws java.lang.IllegalArgumentException
datetimeValue = // quoted datetime string- Parameters:
pStrVal- - the dateTime string in an unquoted formpThrow-- Returns:
Valueornullif parsing failed andpThrowisfalse- Throws:
java.lang.IllegalArgumentException- if parsing failed and pThrow is true.
-
parse
public static Value parse(java.lang.String pStrVal)
- Parameters:
pStrVal-- Returns:
- a Value or null if parsing failed.
- See Also:
parse(String, boolean)
-
getDateTime
public CIMDateTime getDateTime()
getDateTime- Returns:
- CIMDateTime
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
toQuotedString
public java.lang.String toQuotedString()
Description copied from interface:QuotedValuePrints the String representation in a quoted form.- Specified by:
toQuotedStringin interfaceQuotedValue- Returns:
- String
- See Also:
QuotedValue.toQuotedString()
-
getTypeInfo
public java.lang.String getTypeInfo()
Description copied from class:ValuegetTypeInfo- Specified by:
getTypeInfoin classValue- Returns:
- the type description string of the Value.
- See Also:
Value.getTypeInfo()
-
-