|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.port.AbstractSimplePortObjectSpec
public abstract class AbstractSimplePortObjectSpec
Abstract implementation of basic port object specs that save and load
themselves from ModelContentRO
objects. This class should be used in
cases where the content of a model can be easily broke up into basic types
(such as String, int, double, ...) and array of those.
Subclasses must provide an empty no-arg constructor with public scope
(which will be used to restore the content). The do not need to provide a
static serializer method as required by the interface PortObjectSpec
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObjectSpec |
---|
PortObjectSpec.PortObjectSpecSerializer<T extends PortObjectSpec> |
Constructor Summary | |
---|---|
AbstractSimplePortObjectSpec()
Public no-arg constructor. |
Method Summary | |
---|---|
boolean |
equals(Object ospec)
|
static PortObjectSpec.PortObjectSpecSerializer<AbstractSimplePortObjectSpec> |
getPortObjectSpecSerializer()
Abstract serializer method as required by interface PortObjectSpec . |
JComponent[] |
getViews()
The returned views are displayed in the out port view of the referring node. |
int |
hashCode()
|
protected abstract void |
load(ModelContentRO model)
Loads the content into the freshly instantiated object. |
protected abstract void |
save(ModelContentWO model)
Saves this object to model content object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSimplePortObjectSpec()
Method Detail |
---|
public static final PortObjectSpec.PortObjectSpecSerializer<AbstractSimplePortObjectSpec> getPortObjectSpecSerializer()
PortObjectSpec
.
protected abstract void save(ModelContentWO model)
model
- To save to.protected abstract void load(ModelContentRO model) throws InvalidSettingsException
model
- To load from.
InvalidSettingsException
- If settings are incomplete/deficient.public JComponent[] getViews()
getViews
in interface PortObjectSpec
public boolean equals(Object ospec)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |