public abstract class GraphNode extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected org.json.simple.JSONObject | dataThe data. | 
| static String | DB_ENTRY_EDGE_ENDThe Constant DB_ENTRY_EDGE_END. | 
| static String | DB_ENTRY_EDGE_STARTThe Constant DB_ENTRY_EDGE_START. | 
| static String | DB_ENTRY_EDGE_TYPEThe Constant DB_ENTRY_EDGE_TYPE. | 
| static String | DB_ENTRY_NODE_LABELSThe Constant DB_ENTRY_NODE_LABELS. | 
| static String | DB_ENTRY_NODE_PROPERTIESThe Constant DB_ENTRY_NODE_PROPERTIES. | 
| static String | DB_ENTRY_NODE_SELFThe Constant DB_ENTRY_NODE_SELF. | 
| protected org.json.simple.JSONObject | dbEntryr/o entry received from db, might be null if this entry wasn't obtained from db. | 
| static int | TYPE_AUTHORThe Constant TYPE_AUTHOR. | 
| static int | TYPE_BIBENTRYThe Constant TYPE_BIBENTRY. | 
| static int | TYPE_COMMENTThe Constant TYPE_COMMENT. | 
| static int | TYPE_FILEThe Constant TYPE_FILE. | 
| static int | TYPE_INSTALLATIONThe Constant TYPE_INSTALLATION. | 
| static int | TYPE_PLATFORMThe Constant TYPE_PLATFORM. | 
| static int | TYPE_POSTThe Constant TYPE_POST. | 
| static int | TYPE_PUBLISHERThe Constant TYPE_PUBLISHER. | 
| static int | TYPE_REGISTEREDThe Constant TYPE_REGISTERED. | 
| static int | TYPE_TAGThe Constant TYPE_TAG. | 
| static int | TYPE_USERThe Constant TYPE_USER. | 
| Constructor and Description | 
|---|
| GraphNode(org.json.simple.JSONObject dbEntry)The Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.json.simple.JSONObject | getData()Gets the data. | 
| String | getFileUri()Gets the file uri. | 
| Integer | getId()Gets the id. | 
| org.json.simple.JSONArray | getLabels()Gets the labels. | 
| String | getNodeEntry(String key)Gets the node entry. | 
| String | getRestProperties()Gets the rest properties. | 
public static final String DB_ENTRY_NODE_LABELS
public static final String DB_ENTRY_NODE_SELF
public static final String DB_ENTRY_NODE_PROPERTIES
public static final String DB_ENTRY_EDGE_START
public static final String DB_ENTRY_EDGE_END
public static final String DB_ENTRY_EDGE_TYPE
public static final int TYPE_COMMENT
public static final int TYPE_REGISTERED
public static final int TYPE_FILE
public static final int TYPE_BIBENTRY
public static final int TYPE_AUTHOR
public static final int TYPE_POST
public static final int TYPE_PUBLISHER
public static final int TYPE_TAG
public static final int TYPE_USER
public static final int TYPE_INSTALLATION
public static final int TYPE_PLATFORM
protected org.json.simple.JSONObject dbEntry
protected org.json.simple.JSONObject data
public GraphNode(org.json.simple.JSONObject dbEntry)
dbEntry - the db entrypublic final String getRestProperties()
public final Integer getId()
public final String getNodeEntry(String key)
key - the keypublic final org.json.simple.JSONObject getData()
public org.json.simple.JSONArray getLabels()
                                    throws IOException
IOException - the IO exceptionpublic String getFileUri()
Copyright © 2019 SEMS project @ University of Rostock. All rights reserved.