public abstract class GraphNode extends Object
Modifier and Type | Field and Description |
---|---|
protected org.json.simple.JSONObject |
data
The data.
|
static String |
DB_ENTRY_EDGE_END
The Constant DB_ENTRY_EDGE_END.
|
static String |
DB_ENTRY_EDGE_START
The Constant DB_ENTRY_EDGE_START.
|
static String |
DB_ENTRY_EDGE_TYPE
The Constant DB_ENTRY_EDGE_TYPE.
|
static String |
DB_ENTRY_NODE_LABELS
The Constant DB_ENTRY_NODE_LABELS.
|
static String |
DB_ENTRY_NODE_PROPERTIES
The Constant DB_ENTRY_NODE_PROPERTIES.
|
static String |
DB_ENTRY_NODE_SELF
The Constant DB_ENTRY_NODE_SELF.
|
protected org.json.simple.JSONObject |
dbEntry
r/o entry received from db, might be null if this entry wasn't obtained from db.
|
static int |
TYPE_AUTHOR
The Constant TYPE_AUTHOR.
|
static int |
TYPE_BIBENTRY
The Constant TYPE_BIBENTRY.
|
static int |
TYPE_COMMENT
The Constant TYPE_COMMENT.
|
static int |
TYPE_FILE
The Constant TYPE_FILE.
|
static int |
TYPE_INSTALLATION
The Constant TYPE_INSTALLATION.
|
static int |
TYPE_PLATFORM
The Constant TYPE_PLATFORM.
|
static int |
TYPE_POST
The Constant TYPE_POST.
|
static int |
TYPE_PUBLISHER
The Constant TYPE_PUBLISHER.
|
static int |
TYPE_REGISTERED
The Constant TYPE_REGISTERED.
|
static int |
TYPE_TAG
The Constant TYPE_TAG.
|
static int |
TYPE_USER
The 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.