org.sblim.cimclient.internal.uri
Class RealValue

java.lang.Object
  extended by org.sblim.cimclient.internal.uri.Value
      extended by org.sblim.cimclient.internal.uri.RealValue

public class RealValue
extends Value

Class RealValue parses and encapsulates real values.


Method Summary
 double doubleValue()
          doubleValue
 float floatValue()
          floatValue
 String getTypeInfo()
          getTypeInfo
 boolean isDouble()
          isDouble
static Value parse(URIString pUriStr)
          Parses a RealValue as a double precision value.
static Value parseDouble(URIString pUriStr)
          parseDouble
static Value parseFloat(URIString pUriStr)
          parseFloat
 String toString()
           
 
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 Detail

parse

public static Value parse(URIString pUriStr)
Parses a RealValue as a double precision value.

Parameters:
pUriStr -
Returns:
Value

parseFloat

public static Value parseFloat(URIString pUriStr)
                        throws IllegalArgumentException
parseFloat

Parameters:
pUriStr -
Returns:
Value
Throws:
IllegalArgumentException - if parsing failed

parseDouble

public static Value parseDouble(URIString pUriStr)
                         throws IllegalArgumentException
parseDouble

Parameters:
pUriStr -
Returns:
Value
Throws:
IllegalArgumentException - if parsing failed

isDouble

public boolean isDouble()
isDouble

Returns:
boolean

floatValue

public float floatValue()
floatValue

Returns:
float

doubleValue

public double doubleValue()
doubleValue

Returns:
double

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getTypeInfo

public String getTypeInfo()
Description copied from class: Value
getTypeInfo

Specified by:
getTypeInfo in class Value
Returns:
the type description string of the Value.
See Also:
Value.getTypeInfo()


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