public abstract class AbstractConfigEntry extends Object implements Serializable, TreeNode
Constructor and Description |
---|
AbstractConfigEntry(ConfigEntries type,
String key)
Creates a new Config entry by the given key and type.
|
Modifier and Type | Method and Description |
---|---|
Enumeration<TreeNode> |
children() |
boolean |
equals(Object o)
Config entries are equal if they are identical.
|
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
int |
getIndex(TreeNode node) |
String |
getKey()
Returns the key for this entry.
|
TreeNode |
getParent() |
ConfigEntries |
getType() |
int |
hashCode() |
(package private) abstract boolean |
hasIdenticalValue(AbstractConfigEntry ace)
Derived classes must compare their value with the value in the passed
argument (on equality).
|
boolean |
isIdentical(AbstractConfigEntry ace)
Checks the identity of two config entries.
|
boolean |
isLeaf() |
(package private) void |
setKey(String key)
Set a new key.
|
void |
setParent(AbstractConfigEntry parent)
Sets the parent for this entry which is null if not available.
|
String |
toString()
String summary of this object including key, type, and value.
|
abstract String |
toStringValue()
Returns a String representation for this Config entry which is the used
to re-load this Config entry.
|
AbstractConfigEntry(ConfigEntries type, String key)
type
- enum type within the ConfigEntries
key
- The key under which this value is added.IllegalArgumentException
- if the type or key is nullpublic final String getKey()
final void setKey(String key)
key
- the key to setIllegalArgumentException
- If argument is null.public final void setParent(AbstractConfigEntry parent)
parent
- The new parent of the entry.public final ConfigEntries getType()
public String toString()
toString
in class Object
Object.toString()
public abstract String toStringValue()
public boolean equals(Object o)
public final boolean isIdentical(AbstractConfigEntry ace)
hasIdenticalValue
, implemented in the derived
classes.ace
- Entry to check if identical.abstract boolean hasIdenticalValue(AbstractConfigEntry ace)
ace
- the argument to compare the value withpublic TreeNode getChildAt(int childIndex)
getChildAt
in interface TreeNode
childIndex
- Not is use.public int getChildCount()
getChildCount
in interface TreeNode
TreeNode.getChildCount()
public final TreeNode getParent()
getParent
in interface TreeNode
TreeNode.getParent()
public int getIndex(TreeNode node)
getIndex
in interface TreeNode
node
- Not in use.TreeNode.getIndex(javax.swing.tree.TreeNode)
public final boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
TreeNode.getAllowsChildren()
public boolean isLeaf()
isLeaf
in interface TreeNode
TreeNode.isLeaf()
public Enumeration<TreeNode> children()
children
in interface TreeNode
DefaultMutableTreeNode.EMPTY_ENUMERATION
,
TreeNode.children()
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.