Package org.sblim.cimclient.internal.uri
Class CharValue
- java.lang.Object
-
- org.sblim.cimclient.internal.uri.Value
-
- org.sblim.cimclient.internal.uri.CharValue
-
- All Implemented Interfaces:
QuotedValue
public class CharValue extends Value implements QuotedValue
Class CharValue parses character value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description charget()getCharjava.lang.CharactergetCharacter()getCharacterjava.lang.StringgetTypeInfo()getTypeInfostatic Valueparse(URIString pUriStr)Parses a char16 value.static Valueparse(URIString pUriStr, boolean pThrow)charValue = // example: 'a' '\x32'java.lang.StringtoQuotedString()Prints the String representation in a quoted form.java.lang.StringtoString()
-
-
-
Method Detail
-
parse
public static Value parse(URIString pUriStr, boolean pThrow) throws java.lang.IllegalArgumentException
charValue = // example: 'a' '\x32'- Parameters:
pUriStr-pThrow-- Returns:
Valueornullif parsing is failed andpThrowisfalse- Throws:
java.lang.IllegalArgumentException- if parsing is failed andpThrowistrue
-
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 java.lang.Character getCharacter()
getCharacter- Returns:
- Character
-
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()
-
-