Package org.openjdk.jmc.common
Interface IWritableState
-
public interface IWritableStateA state container which can be written to. It is an hierarchical structure that can contain named child states. Actual data values are stored in named attributes for each state node.This interface is a companion to
IStatewhich handles reading of state information.IStatefulcan be used to mark a class that knows how to store its state in an IWritableState instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IWritableStatecreateChild(String type)Creates a new child node.voidputString(String key, String value)Stores a named attribute value.
-
-
-
Method Detail
-
createChild
IWritableState createChild(String type)
Creates a new child node. Multiple nodes of the same type are permitted.- Parameters:
type- node type- Returns:
- a new child node
-
-