|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.config.AbstractConfigEntry
org.knime.core.node.config.Config
org.knime.core.node.ModelContent
public final class ModelContent
This ModelContent is used to store XML-like model settings.
Constructor Summary | |
---|---|
ModelContent(String key)
Creates new content object. |
Method Summary | |
---|---|
void |
addModelContent(ModelContent modelContent)
Add the given ModelContent object to this Config using the
key of the argument's ModelContent . |
ModelContentWO |
addModelContent(String key)
Creates new ModelContentWO object for the given key and
returns it. |
Config |
getInstance(String key)
Creates a new Config of this type. |
ModelContent |
getModelContent(String key)
Returns a read-only ModelContentRO object from this config. |
(package private) void |
load(InputStream in,
ExecutionMonitor exec)
Load this object from a directory. |
static ModelContentRO |
loadFromXML(InputStream in)
Reads ModelContent settings from the given XML stream
and returns a new ModelContent object. |
(package private) void |
save(OutputStream out,
ExecutionMonitor exec)
Saves this object to an output stream. |
Methods inherited from class org.knime.core.node.config.AbstractConfigEntry |
---|
equals, getAllowsChildren, getKey, getParent, hashCode, isIdentical |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.knime.core.node.config.ConfigRO |
---|
containsKey, copyTo, getBoolean, getBoolean, getBooleanArray, getBooleanArray, getByte, getByte, getByteArray, getByteArray, getChar, getChar, getCharArray, getCharArray, getConfig, getDataCell, getDataCell, getDataCellArray, getDataCellArray, getDataType, getDataType, getDataTypeArray, getDataTypeArray, getDouble, getDouble, getDoubleArray, getDoubleArray, getFloat, getFloat, getFloatArray, getFloatArray, getInt, getInt, getIntArray, getIntArray, getKey, getLong, getLong, getLongArray, getLongArray, getRowKey, getRowKey, getRowKeyArray, getRowKeyArray, getShort, getShort, getShortArray, getShortArray, getString, getString, getStringArray, getStringArray, iterator, keySet, saveToXML |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Methods inherited from interface org.knime.core.node.config.ConfigWO |
---|
addBoolean, addBooleanArray, addByte, addByteArray, addChar, addCharArray, addConfig, addDataCell, addDataCellArray, addDataType, addDataTypeArray, addDouble, addDoubleArray, addFloat, addFloatArray, addInt, addIntArray, addLong, addLongArray, addRowKey, addRowKeyArray, addShort, addShortArray, addString, addStringArray, getKey |
Constructor Detail |
---|
public ModelContent(String key)
key
- The key for this ModelContent.Method Detail |
---|
public Config getInstance(String key)
getInstance
in class Config
key
- The new Config's key.
public static ModelContentRO loadFromXML(InputStream in) throws IOException
ModelContent
settings from the given XML stream
and returns a new ModelContent
object.
in
- XML input stream to read settings from.
IOException
- If the stream could not be read.
NullPointerException
- If one of the arguments is
null
.public void addModelContent(ModelContent modelContent)
ModelContent
object to this Config using the
key of the argument's ModelContent
.
addModelContent
in interface ModelContentWO
modelContent
- The object to add to this Config
.public ModelContentWO addModelContent(String key)
ModelContentWO
object for the given key and
returns it.
addModelContent
in interface ModelContentWO
key
- The identifier for the given config.
ModelContentWO
object.public ModelContent getModelContent(String key) throws InvalidSettingsException
ModelContentRO
object from this config.
getModelContent
in interface ModelContentRO
key
- The identifier.
ModelContentRO
object.
InvalidSettingsException
- If the object can't be accessed.final void save(OutputStream out, ExecutionMonitor exec) throws IOException, CanceledExecutionException
PortObject
.
out
- Where to save to.exec
- To report progress to.
IOException
- If saving fails for IO problems.
CanceledExecutionException
- If canceled.Config.load(InputStream)
final void load(InputStream in, ExecutionMonitor exec) throws IOException, CanceledExecutionException
PortObject
.
in
- Where to load fromexec
- To report progress to.
IOException
- If loading fails for IO problems.
CanceledExecutionException
- If canceled.save(OutputStream, ExecutionMonitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |