Package org.openjdk.jmc.common
Interface IState
- 
- All Known Implementing Classes:
- StatefulState
 
 public interface IStateA state container which can be read from. 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 IWritableStatewhich handles writing of state information.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAttribute(String key)Gets a named attribute value.String[]getAttributeKeys()Return an array with the attribute keys for this state.IStategetChild(String type)Gets a child of the named type.IState[]getChildren()Gets all child nodes.IState[]getChildren(String type)Gets all child nodes of a named type.StringgetType()Get the node type of this state.
 
- 
- 
- 
Method Detail- 
getTypeString getType() Get the node type of this state.- Returns:
- node type
 
 - 
getAttributeKeysString[] getAttributeKeys() Return an array with the attribute keys for this state.- Returns:
- attribute keys
 
 - 
getAttributeString getAttribute(String key) Gets a named attribute value.- Parameters:
- key- attribute key
- Returns:
- attribute value
 
 - 
getChildIState getChild(String type) Gets a child of the named type. If there are several child nodes of the same type then any of them may be returned.- Parameters:
- type- node type
- Returns:
- child node or nullif no such child exists
 
 - 
getChildrenIState[] getChildren() Gets all child nodes.- Returns:
- an array of child nodes
 
 
- 
 
-