/**
 * A class for representing strings in JSON
 * 
 * @author Graeme Boy, Vasilisa Bashlovkina
 * @created April 23, 2014
 */

public class JSONString
    extends JSONVal
{
  String string;

  // Constructors
  public JSONString(String stringIn)
  {
    this.string = stringIn;
  } // JSONString

  public String toString()
  {
    return this.string;
  }

  public String get()
  {
    return this.string;
  }

  public boolean isString()
  {
    return true;
  } // type()

  public int compareTo(String val)
  {
    return (this.string.compareTo((String) val));
  } // compareTo
  
}// JSONString class

@@ -173,307 +173,1114 @@
 %7B%0A  
-String string;%0A%0A  // Constructors%0A  public JSONString(String stringIn)%0A  %7B%0A    this.string = stringIn;%0A  %7D // JSONString%0A%0A  public String toString()%0A  %7B%0A    return this.string;%0A  %7D%0A%0A  public String get()%0A  %7B%0A    return this.string;%0A  %7D%0A%0A  public boolean isString()%0A  %7B%0A    return true;%0A  %7D // type()
+// +--------+----------------------------------------------------------%0A  // %7C Fields %7C%0A  // +--------+%0A%0A  /**%0A   * The actual string%0A   */%0A  String string;%0A%0A  // +--------------+----------------------------------------------------%0A  // %7C Constructors %7C%0A  // +--------------+%0A%0A  /**%0A   * Make a new JSONString%0A   * %0A   * @param stringIn%0A   */%0A  public JSONString(String stringIn)%0A  %7B%0A    this.string = stringIn;%0A  %7D // JSONString%0A%0A  // +---------+---------------------------------------------------------%0A  // %7C Methods %7C%0A  // +---------+%0A  /**%0A   *  The standard toString method%0A   */%0A  public String toString()%0A  %7B%0A    return this.string;%0A  %7D// toString()%0A%0A  /**%0A   * Get the %22value%22 of this string%0A   * (necessary because the superclass has this method)%0A   */%0A  public String get()%0A  %7B%0A    return this.string;%0A  %7D// get()%0A%0A  /**%0A   * Determine whether this is a string%0A   * @return true%0A   */%0A  public boolean isString()%0A  %7B%0A    return true;%0A  %7D // isString()%0A%0A  /**%0A   * Comapre this string to another%0A   * @param %3CT%3E%0A   * %0A   * @param val%0A   * @return 0 is equal, %3C 0 is smaller, %3E 0 if greater %0A   */
 %0A%0A  
@@ -1285,16 +1285,20 @@
   public
+ %3CT%3E
  int com
@@ -1304,22 +1304,17 @@
 mpareTo(
-String
+T
  val)%0A  
@@ -1353,20 +1353,22 @@
 eTo(
-(
+val.to
 String
+(
 )
- val
 ));%0A
@@ -1383,19 +1383,25 @@
 ompareTo
-%0A  
+(String)%0A
 %0A%7D// JSO

number and string are perfect