|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.config.AbstractConfigEntry
abstract class AbstractConfigEntry
Abstract Config entry holding only a Config entry type. Deriving classes must store the corresponding value and implement.
Constructor Summary | |
---|---|
AbstractConfigEntry(ConfigEntries type,
String key)
Creates a new Config entry by the given key and type. |
Method Summary | |
---|---|
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()
|
(package private) 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. |
(package private) 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. |
(package private) abstract String |
toStringValue()
Returns a String representation for this Config entry which is the used to re-load this Config entry. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 nullMethod Detail |
---|
public final String getKey()
final void setKey(String key)
key
- the key to set
IllegalArgumentException
- If argument is null.final void setParent(AbstractConfigEntry parent)
parent
- The new parent of the entry.final ConfigEntries getType()
public String toString()
toString
in class Object
Object.toString()
abstract String toStringValue()
public boolean equals(Object o)
equals
in class Object
o
- The other object to check against.
isIdentical(AbstractConfigEntry)
returns
true.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 with
public int hashCode()
hashCode
in class Object
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |