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

    Modifier and Type
    Method
    Description
    getDateTime
    java.lang.String
    getTypeInfo
    static Value
    parse(java.lang.String pStrVal)
     
    static Value
    parse(java.lang.String pStrVal, boolean pThrow)
    datetimeValue = // quoted datetime string
    java.lang.String
    Prints the String representation in a quoted form.
    java.lang.String
     

    Methods inherited from class org.sblim.cimclient.internal.uri.Value

    parse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • 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 form
      pThrow -
      Returns:
      Value or null if parsing failed and pThrow is false
      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:
    • getDateTime

      public CIMDateTime getDateTime()
      getDateTime
      Returns:
      CIMDateTime
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
      See Also:
      • Object.toString()
    • toQuotedString

      public java.lang.String toQuotedString()
      Description copied from interface: QuotedValue
      Prints the String representation in a quoted form.
      Specified by:
      toQuotedString in interface QuotedValue
      Returns:
      String
      See Also:
    • getTypeInfo

      public java.lang.String getTypeInfo()
      Description copied from class: Value
      getTypeInfo
      Specified by:
      getTypeInfo in class Value
      Returns:
      the type description string of the Value.
      See Also: