org.freehep.util.io
Class ActionSet
- java.lang.Object
-
- org.freehep.util.io.ActionSet
-
public class ActionSet extends java.lang.ObjectClass to keep registered Actions, which should be used by the TaggedIn/OutputStream. A set of recognized Actions can be added to this class. A concrete implementation of this stream should install all allowed actions.
-
-
Constructor Summary
Constructors Constructor and Description ActionSet()Creates an set for actions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddAction(Action action)Adds an action to the setbooleanexists(int actionCode)Looks if an Action for code is in this set.Actionget(int actionCode)Looks up the corresponding action for an action code.
-
-
-
Method Detail
-
addAction
public void addAction(Action action)
Adds an action to the set- Parameters:
action- to be added
-
get
public Action get(int actionCode)
Looks up the corresponding action for an action code.- Parameters:
actionCode- code to be looked for- Returns:
- corresponding action, or Action.Unknown in case Action is not found.
-
exists
public boolean exists(int actionCode)
Looks if an Action for code is in this set.- Parameters:
actionCode- code to be looked for- Returns:
- true if action exists for code
-
-
DMelt 3.0 © DataMelt by jWork.ORG