|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.config.base.AbstractConfigEntry
org.knime.core.node.config.base.ConfigBase
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.Config |
|---|
addConfig, addConfig, addDataCell, addDataCellArray, addDataType, addDataTypeArray, addEntry, addRowKey, addRowKeyArray, getConfig, getDataCell, getDataCell, getDataCellArray, getDataCellArray, getDataType, getDataType, getDataTypeArray, getDataTypeArray, getRowKey, getRowKey, getRowKeyArray, getRowKeyArray, load, loadFromXML, readFromFile, toString |
| Methods inherited from class org.knime.core.node.config.base.ConfigBase |
|---|
addBoolean, addBooleanArray, addByte, addByteArray, addChar, addCharArray, addConfigBase, addConfigBase, addDouble, addDoubleArray, addFloat, addFloatArray, addInt, addIntArray, addLong, addLongArray, addShort, addShortArray, addString, addStringArray, children, containsKey, copyTo, get, getBoolean, getBoolean, getBooleanArray, getBooleanArray, getByte, getByte, getByteArray, getByteArray, getChar, getChar, getCharArray, getCharArray, getChildAt, getChildCount, getConfigBase, getDouble, getDouble, getDoubleArray, getDoubleArray, getEntry, getFloat, getFloat, getFloatArray, getFloatArray, getIndex, getInt, getInt, getIntArray, getIntArray, getLong, getLong, getLongArray, getLongArray, getShort, getShort, getShortArray, getShortArray, getString, getString, getStringArray, getStringArray, hasIdenticalValue, isLeaf, iterator, keySet, loadFromXML, put, saveToXML, toString, toStringValue, writeToFile |
| Methods inherited from class org.knime.core.node.config.base.AbstractConfigEntry |
|---|
equals, getAllowsChildren, getKey, getParent, getType, hashCode, isIdentical, setParent |
| 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 |
|---|
getConfig, getDataCell, getDataCell, getDataCellArray, getDataCellArray, getDataType, getDataType, getDataTypeArray, getDataTypeArray, getRowKey, getRowKey, getRowKeyArray, getRowKeyArray, iterator |
| Methods inherited from interface org.knime.core.node.config.base.ConfigBaseRO |
|---|
containsKey, copyTo, getBoolean, getBoolean, getBooleanArray, getBooleanArray, getByte, getByte, getByteArray, getByteArray, getChar, getChar, getCharArray, getCharArray, getConfigBase, getDouble, getDouble, getDoubleArray, getDoubleArray, getFloat, getFloat, getFloatArray, getFloatArray, getInt, getInt, getIntArray, getIntArray, getKey, getLong, getLong, getLongArray, getLongArray, getShort, getShort, getShortArray, getShortArray, getString, getString, getStringArray, getStringArray, 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 |
|---|
addConfig, addDataCell, addDataCellArray, addDataType, addDataTypeArray, addRowKey, addRowKeyArray |
| Methods inherited from interface org.knime.core.node.config.base.ConfigBaseWO |
|---|
addBoolean, addBooleanArray, addByte, addByteArray, addChar, addCharArray, addConfigBase, addDouble, addDoubleArray, addFloat, addFloatArray, addInt, addIntArray, addLong, addLongArray, 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 Configkey - 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 ModelContentWOmodelContent - The object to add to this Config.public ModelContentWO addModelContent(String key)
ModelContentWO object for the given key and
returns it.
addModelContent in interface ModelContentWOkey - The identifier for the given config.
ModelContentWO object.
public ModelContent getModelContent(String key)
throws InvalidSettingsException
ModelContentRO object from this config.
getModelContent in interface ModelContentROkey - 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 | |||||||||