com.paypal.digraph.parser
Class GraphElement

java.lang.Object
  extended by com.paypal.digraph.parser.GraphElement
Direct Known Subclasses:
GraphEdge, GraphNode

public class GraphElement
extends Object


Field Summary
protected  Map<String,Object> mAttrs
           
protected  String mId
           
 
Constructor Summary
GraphElement(String id)
           
 
Method Summary
 Object getAttribute(String key)
           
 Map<String,Object> getAttributes()
           
 String getId()
           
 void setAttribute(String key, Object value)
           
 void setAttributes(Map<String,Object> attrs)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mId

protected String mId

mAttrs

protected Map<String,Object> mAttrs
Constructor Detail

GraphElement

public GraphElement(String id)
Method Detail

setAttribute

public void setAttribute(String key,
                         Object value)

setAttributes

public void setAttributes(Map<String,Object> attrs)

getId

public String getId()

getAttribute

public Object getAttribute(String key)

getAttributes

public Map<String,Object> getAttributes()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2017. All rights reserved.