ccc.client.gwt.core
Class GWTTextParser

java.lang.Object
  extended by ccc.client.gwt.core.GWTTextParser
All Implemented Interfaces:
TextParser

public class GWTTextParser
extends java.lang.Object
implements TextParser

Implementation of the TextParser API using the GWT library.

Author:
Civic Computing Ltd.

Constructor Summary
GWTTextParser()
           
 
Method Summary
 Json newJson()
          Create a new JSON object.
 boolean parseBoolean(java.lang.String text)
          Parse text as a boolean.
 Json parseJson(java.lang.String text)
          Parse text into a JSON object.
 java.util.Map<java.lang.String,java.lang.String> parseMapString(java.lang.String text)
          Parse text as a map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GWTTextParser

public GWTTextParser()
Method Detail

parseJson

public Json parseJson(java.lang.String text)
Parse text into a JSON object.

Specified by:
parseJson in interface TextParser
Parameters:
text - The text to parse.
Returns:
The corresponding JSON object.

parseBoolean

public boolean parseBoolean(java.lang.String text)
Parse text as a boolean.

Specified by:
parseBoolean in interface TextParser
Parameters:
text - The text to parse.
Returns:
A boolean.

parseMapString

public java.util.Map<java.lang.String,java.lang.String> parseMapString(java.lang.String text)
Parse text as a map.

Specified by:
parseMapString in interface TextParser
Parameters:
text - The text to parse.
Returns:
A map.

newJson

public Json newJson()
Create a new JSON object.

Specified by:
newJson in interface TextParser
Returns:
The new object.


Copyright © 2010. All Rights Reserved.