org.sblim.cimclient.internal.uri
Class CharValue

java.lang.Object
  extended by org.sblim.cimclient.internal.uri.Value
      extended by org.sblim.cimclient.internal.uri.CharValue
All Implemented Interfaces:
QuotedValue

public class CharValue
extends Value
implements QuotedValue

Class CharValue parses character value.


Method Summary
 char get()
          getChar
 Character getCharacter()
          getCharacter
 String getTypeInfo()
          getTypeInfo
static Value parse(URIString pUriStr)
          Parses a char16 value.
static Value parse(URIString pUriStr, boolean pThrow)
          charValue = // example: 'a' '\x32'
 String toQuotedString()
          Prints the String representation in a quoted form.
 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,
                          boolean pThrow)
                   throws IllegalArgumentException
charValue = // example: 'a' '\x32'

Parameters:
pUriStr -
pThrow -
Returns:
Value or null if parsing is failed and pThrow is false
Throws:
IllegalArgumentException - if parsing is failed and pThrow is true

parse

public static Value parse(URIString pUriStr)
Parses a char16 value.

Parameters:
pUriStr -
Returns:
Value or null if parsing failed.

get

public char get()
getChar

Returns:
char

getCharacter

public Character getCharacter()
getCharacter

Returns:
Character

toString

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

toQuotedString

public 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:
QuotedValue.toQuotedString()

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.