public class ExternalNodeData extends Object
ExternalNodeData.ExternalNodeDataBuilder
which can be acquired via builder(String)
.Modifier and Type | Class and Description |
---|---|
static class |
ExternalNodeData.ExternalNodeDataBuilder
Builder for
ExternalNodeData . |
Modifier and Type | Field and Description |
---|---|
protected String |
m_id
The output's ID (resource ID).
|
protected javax.json.JsonValue |
m_jsonValue
The inline JSON output, may be
null . |
protected String |
m_stringValue
The inline plain string output, may be
null . |
protected URL |
m_url
URL to a output resource, may be
null . |
static javax.json.JsonObject |
NO_JSON_VALUE_YET
Indicator that a JSON value can be provided but is not available yet.
|
static String |
NO_STRING_VALUE_YET
Indicator that a string value can be provided but is not available yet.
|
static URL |
NO_URL_VALUE_YET
Indicator that a URL value can be provided but is not available yet.
|
Modifier | Constructor and Description |
---|---|
protected |
ExternalNodeData()
May be used by subclasses.
|
(package private) |
ExternalNodeData(ExternalNodeData.ExternalNodeDataBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static ExternalNodeData.ExternalNodeDataBuilder |
builder(String id)
Creates a new builder for an external node data.
|
boolean |
equals(Object obj) |
String |
getID()
Returns an ID for this data object (may be an empty string if the node is not configured yet).
|
javax.json.JsonValue |
getJSONValue()
Returns node data as a generic JSON value.
|
URL |
getResource()
Returns the URL to a larger resource.
|
String |
getStringValue()
Returns node data as a plain string.
|
int |
hashCode() |
String |
toString() |
public static final String NO_STRING_VALUE_YET
public static final javax.json.JsonObject NO_JSON_VALUE_YET
public static final URL NO_URL_VALUE_YET
protected String m_id
protected javax.json.JsonValue m_jsonValue
null
.protected String m_stringValue
null
.protected URL m_url
null
.protected ExternalNodeData()
ExternalNodeData(ExternalNodeData.ExternalNodeDataBuilder builder)
public String getID()
null
public javax.json.JsonValue getJSONValue()
null
if no JSON data is provided.NO_JSON_VALUE_YET
is returned this means that eventually JSON can be
provided. A null
value means that JSON may never be available.null
public String getStringValue()
null
if no string data is provided.NO_STRING_VALUE_YET
is returned this means that eventually JSON can be
provided. A null
value means that JSON may never be available.null
public URL getResource()
null
if no external resource is provided.NO_URL_VALUE_YET
is returned this means that eventually JSON can be
provided. A null
value means that JSON may never be available.null
public static ExternalNodeData.ExternalNodeDataBuilder builder(String id)
id
- the output id.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.