Class EDU.auburn.VGJ.graph.GMLobject
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.auburn.VGJ.graph.GMLobject

java.lang.Object
   |
   +----EDU.auburn.VGJ.graph.GMLobject

public class GMLobject
extends Object
A GML object that does nothing but create itself and write itself.

Here is the source.

Variable Index

 o GMLfile
 o GMLinteger
 o GMLlist
 o GMLreal
 o GMLstring
 o GMLundefined
 o key_
 o next_
 o type_
 o value_

Constructor Index

 o GMLobject()
 o GMLobject(GMLlexer, String)
Create the object from a GMLlexer and key.
 o GMLobject(String, int)

Method Index

 o addObject(GMLobject)
 o addObjectToEnd(GMLobject)
 o deleteAll(String, int)
 o deleteUnsafe()
 o getGMLSubObject(String, int, boolean)
Get the first sub-object with path-key "path" and type "type", or null if no such object exists.
 o getNextGMLSubObject()
Iterator initialized by getGMLSubObject().
 o getValue(String, int)
Get the value of the first sub object matching the path-key "path" and type "type", or null if there is no sub object.
 o prune()
Remove all null GMLlists from the object tree.
 o setHashFromGML(String, int, Hashtable)
Insert the keys and values of the first sub-object with path-key "path" and type "type", into the hash table "hash".
 o setValue(String, int, Object)
 o toString(int)
Print the text representation of the object tree, with "numtabs" leading tabs.

Variables

 o GMLinteger
  public final static int GMLinteger
 o GMLreal
  public final static int GMLreal
 o GMLstring
  public final static int GMLstring
 o GMLlist
  public final static int GMLlist
 o GMLundefined
  public final static int GMLundefined
 o GMLfile
  public final static int GMLfile
 o key_
  protected String key_
 o value_
  protected Object value_
 o next_
  protected GMLobject next_
 o type_
  protected int type_

Constructors

 o GMLobject
  public GMLobject()
 o GMLobject
  public GMLobject(String key,
                   int type)
 o GMLobject
  public GMLobject(GMLlexer lexer,
                   String key) throws IOException, ParseError
Create the object from a GMLlexer and key. A null key will cause a GMLfile object to be created.

Methods

 o toString
  public String toString(int numtabs)
Print the text representation of the object tree, with "numtabs" leading tabs.
 o getNextGMLSubObject
  public GMLobject getNextGMLSubObject()
Iterator initialized by getGMLSubObject(). Returns the next sub-object matching the path-key and type specified in a previous call to getGMLSubObject(), or null if no such object exists.
 o getGMLSubObject
  public GMLobject getGMLSubObject(String path,
                                   int type,
                                   boolean create)
Get the first sub-object with path-key "path" and type "type", or null if no such object exists. If "create" is true, create the sub-object if it doesn't exist. If type is GMLreal and a matching GMLinteger is found, the integer object will be changed to a real. This function begins an iteration sequence that can continue with calls to getNextGMLSubObject().
 o setHashFromGML
  public void setHashFromGML(String path,
                             int type,
                             Hashtable hash)
Insert the keys and values of the first sub-object with path-key "path" and type "type", into the hash table "hash". If type is GMLreal and a matching GMLinteger is found, the integer object will be changed to a real.
 o getValue
  public Object getValue(String path,
                         int type)
Get the value of the first sub object matching the path-key "path" and type "type", or null if there is no sub object.
 o setValue
  public void setValue(String path,
                       int type,
                       Object value)
 o addObject
  public void addObject(GMLobject object)
 o addObjectToEnd
  public void addObjectToEnd(GMLobject object)
 o deleteUnsafe
  public void deleteUnsafe()
 o deleteAll
  public void deleteAll(String key,
                        int type)
 o prune
  public void prune()
Remove all null GMLlists from the object tree.

All Packages  Class Hierarchy  This Package  Previous  Next  Index