|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.workflow.MetaNodeTemplateInformation
public final class MetaNodeTemplateInformation
Additional information that is associated with a meta node that are used as templates. This includes their source URI and versioning information.
| Nested Class Summary | |
|---|---|
static class |
MetaNodeTemplateInformation.Role
The template's role. |
static class |
MetaNodeTemplateInformation.UpdateStatus
|
| Field Summary | |
|---|---|
static MetaNodeTemplateInformation |
NONE
Default info object (no template). |
| Method Summary | |
|---|---|
protected MetaNodeTemplateInformation |
clone()
|
MetaNodeTemplateInformation |
createLink(URI sourceURI)
Create a new link template info based on this template, which is supposed to be accessible under the argument URI. |
static MetaNodeTemplateInformation |
createNewTemplate()
|
MetaNodeTemplateInformation.Role |
getRole()
|
URI |
getSourceURI()
|
Date |
getTimestamp()
|
String |
getTimeStampString()
The timestamp formatted as string or null if this is not a link. |
MetaNodeTemplateInformation.UpdateStatus |
getUpdateStatus()
Transient field that is set by the update checker. |
static MetaNodeTemplateInformation |
load(NodeSettingsRO settings,
WorkflowPersistorVersion200.LoadVersion version)
Load information from argument, throw InvalidSettingsException
if that fails. |
void |
save(NodeSettingsWO settings)
Saves this object to the argument settings. |
(package private) boolean |
setUpdateStatusInternal(MetaNodeTemplateInformation.UpdateStatus updateStatus)
Set update status field, only to be called via checkUpdateMetaNodeLink(NodeID, WorkflowLoadHelper). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final MetaNodeTemplateInformation NONE
| Method Detail |
|---|
public Date getTimestamp()
public String getTimeStampString()
public URI getSourceURI()
public MetaNodeTemplateInformation.Role getRole()
public MetaNodeTemplateInformation.UpdateStatus getUpdateStatus()
boolean setUpdateStatusInternal(MetaNodeTemplateInformation.UpdateStatus updateStatus)
checkUpdateMetaNodeLink(NodeID, WorkflowLoadHelper).
updateStatus - The field
public MetaNodeTemplateInformation createLink(URI sourceURI)
throws InvalidSettingsException
sourceURI - The sourceURI, must not be null.
InvalidSettingsException - If this object is not a template.public void save(NodeSettingsWO settings)
settings - To save to.protected MetaNodeTemplateInformation clone()
clone in class Objectpublic String toString()
toString in class Objectpublic static MetaNodeTemplateInformation createNewTemplate()
public static MetaNodeTemplateInformation load(NodeSettingsRO settings,
WorkflowPersistorVersion200.LoadVersion version)
throws InvalidSettingsException
InvalidSettingsException
if that fails.
settings - To load from.version - The version this workflow is loading from
InvalidSettingsException - If that fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||