Package org.sblim.cimclient.internal.uri
Class BooleanValue
- java.lang.Object
-
- org.sblim.cimclient.internal.uri.Value
-
- org.sblim.cimclient.internal.uri.BooleanValue
-
public class BooleanValue extends Value
Class BooleanValue parses and encapsulates a boolean value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getBoolean()
getBooleanjava.lang.String
getTypeInfo()
getTypeInfoboolean
getValue()
getValuestatic Value
parse(URIString pUriStr)
Parses an untyped boolean value.static Value
parse(URIString pUriStr, boolean pThrow)
parsejava.lang.String
toString()
-
-
-
Method Detail
-
parse
public static Value parse(URIString pUriStr, boolean pThrow) throws java.lang.IllegalArgumentException
parse- Parameters:
pUriStr
-pThrow
-- Returns:
Value
ornull
ifpThrow
isfalse
and parsing failed- Throws:
java.lang.IllegalArgumentException
- if parsing failed andpThrow
istrue
-
parse
public static Value parse(URIString pUriStr)
Parses an untyped boolean value.- Parameters:
pUriStr
-- Returns:
- Value
-
getValue
public boolean getValue()
getValue- Returns:
- the
boolean
value.
-
getBoolean
public java.lang.Boolean getBoolean()
getBoolean- Returns:
- Boolean
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
getTypeInfo
public java.lang.String getTypeInfo()
Description copied from class:Value
getTypeInfo- Specified by:
getTypeInfo
in classValue
- Returns:
- the type description string of the Value.
- See Also:
Value.getTypeInfo()
-
-