Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.joone.script
Class MacroManager

    java.lang.Object
      org.joone.script.MacroManager

All Implemented Interfaces:
  java.io.Serializable

    public class MacroManager

extends java.lang.Object
implements java.io.Serializable

This class is a manager of the macros of a Neural Network

Author:
  P.Marrone
See Also:
  Serialized Form

Field Summary
`(package private) static long` | `serialVersionUID`

Constructor Summary
`MacroManager()` Creates a new instance of MacroManager

Method Summary
`void` | `addMacro(java.lang.String name, java.lang.String text)`
`java.lang.String` | `getMacro(java.lang.String name)`
`java.util.Hashtable` | `getMacros()` Getter for property macros.
`protected java.util.Hashtable` | `initMacro(java.util.Hashtable mm)`
`boolean` | `isEventMacro(java.lang.String name)`
`boolean` | `removeMacro(java.lang.String name)` Removes a macro.
`boolean` | `renameMacro(java.lang.String oldName, java.lang.String newName)` Renames a macro.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### serialVersionUID

    static final long serialVersionUID

See Also:
  Constant Field Values

Constructor Detail

### MacroManager

    public MacroManager()

  Creates a new instance of MacroManager

Method Detail

### initMacro

    protected java.util.Hashtable initMacro(java.util.Hashtable mm)

### addMacro

    public void addMacro(java.lang.String name,
                         java.lang.String text)

### getMacro

    public java.lang.String getMacro(java.lang.String name)

### isEventMacro

    public boolean isEventMacro(java.lang.String name)

### removeMacro

    public boolean removeMacro(java.lang.String name)

  Removes a macro.

  Returns:
    false if the macro doesn't exist or it's a system macro. Oterwise true

### renameMacro

    public boolean renameMacro(java.lang.String oldName,
                               java.lang.String newName)

  Renames a macro.

  Returns:
    false if the macro doesn't exist or it's a system macro. Oterwise true

### getMacros

    public java.util.Hashtable getMacros()

  Getter for property macros.

  Returns:
    a clone of the internal Hashtable

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Submit Feedback to pmarrone@users.sourceforge.net