|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.data.readers.GMLNode
public class GMLNode
This class represents a GMLNode. A GMLNode can be either a GML terminal, or contain a mapping from string keys to other GMLNodes
Field Summary | |
---|---|
boolean |
terminal
True if this node is a terminal. |
Constructor Summary | |
---|---|
GMLNode()
This constructor creates a non-terminal GMLNode. |
|
GMLNode(String string_value)
This constructor create a terminal GMLNode. |
Method Summary | |
---|---|
void |
addMapping(String key,
GMLNode node)
Add a mapping from key to node |
int |
compare(Object o1,
Object o2)
DOCUMENT ME! |
Double |
doubleValue()
Get the value of this node as a Double |
Vector |
getMapping(String key)
Return the data mapped by this key |
Integer |
integerValue()
Get the value of this node as an Integer |
String |
stringValue()
Get the value of this node as a String |
String |
toString()
Return the string representation of this GMLNode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
public boolean terminal
Constructor Detail |
---|
public GMLNode(String string_value)
string_value
- The terminal value of the GMLNodepublic GMLNode()
Method Detail |
---|
public String toString()
toString
in class Object
public int compare(Object o1, Object o2)
compare
in interface Comparator
o1
- DOCUMENT ME!o2
- DOCUMENT ME!
public Double doubleValue()
RuntimeException
- if the value of this node cannot be interpreted as a Doublepublic Integer integerValue()
RuntimeException
- if the value of this node cannot be interpreted as an Integerpublic String stringValue()
public void addMapping(String key, GMLNode node)
key
- The key for the mappingnode
- The node which will map to the keypublic Vector getMapping(String key)
key
- The key to look up
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |