org.graffiti.plugins.ios.gml.gmlReader.gml
Class GmlValuable

java.lang.Object
  extended by org.graffiti.plugins.ios.gml.gmlReader.gml.GmlParsableItem
      extended by org.graffiti.plugins.ios.gml.gmlReader.gml.GmlValuable
Direct Known Subclasses:
GmlEdge, GmlGraph, GmlKey, GmlNode

public abstract class GmlValuable
extends GmlParsableItem

The superclass of all objects to which values can be associated according to the definition of GML.

Author:
ruediger

Constructor Summary
GmlValuable(int line, GmlValue value)
          Constructs a new GmlValuable.
 
Method Summary
 GmlValue getValue()
          Returns the value associated to the valuable.
 boolean isEdge()
          Returns true if the valuable is an edge.
 boolean isGraph()
          Returns true if the valuable is a graph.
 boolean isNode()
          Returns true if the valuable is a node.
 
Methods inherited from class org.graffiti.plugins.ios.gml.gmlReader.gml.GmlParsableItem
getLine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GmlValuable

public GmlValuable(int line,
                   GmlValue value)
Constructs a new GmlValuable.

Parameters:
line - the line the valuable was declared at.
value - the value that was associated to the valuable.
Method Detail

isEdge

public boolean isEdge()
Returns true if the valuable is an edge.

Returns:
true if the valuable is an edge.

isGraph

public boolean isGraph()
Returns true if the valuable is a graph.

Returns:
true if the valuable is a graph.

isNode

public boolean isNode()
Returns true if the valuable is a node.

Returns:
true if the valuable is a node.

getValue

public GmlValue getValue()
Returns the value associated to the valuable.

Returns:
the value associated to the valuable.


Generated at 2012-05-30 11:01:25 PM CEST