pmp
Class MacroListModifyEvent

java.lang.Object
  extended by java.util.EventObject
      extended by pmp.MacroListModifyEvent
All Implemented Interfaces:
java.io.Serializable

public class MacroListModifyEvent
extends java.util.EventObject

Event class for MacroListModifyListener.

Title: PMP: Macroprocessor

Description: Java macroprocessor

Copyright: Copyright (c) 2005

Version:
1.0
Author:
Luděk Hlaváček
See Also:
Serialized Form

Field Summary
static int MASK_NON_PMP
          Mask for everything but "pmp:…"
static int MASK_PMP
          Mask for "pmp:…"
static int MASK_PMP_CODE
          Mask for "pmp:code.…"
static int MASK_PMP_INPUT
          Mask for "pmp:input.…"
static int MASK_PMP_IO
          MASK_PMP_INPUT | MASK_PMP_OUTPUT
static int MASK_PMP_LOG_EVENT
          Mask for "pmp:last.…"
static int MASK_PMP_MACRO
          Mask for "pmp:macro.…"
static int MASK_PMP_OUTPUT
          Mask for "pmp:output.…"
static int MASK_PMP_PREFIX
          Mask for "pmp:prefix"
static int MASK_PMP_SCHEME
          Mask for "pmp://…"
static int MASK_PMP_STACK
          Mask for "pmp:stack.…"
static int MASK_PMP_STRING
          Mask for "pmp:string.…"
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MacroListModifyEvent(MacroList source, java.lang.String macroName)
          Creates event object for given name and source
 
Method Summary
 java.lang.String getDirectiveName()
          If this event was invoked by changing value of a configuration directive this method returns its name (without prefix).
 int getMask()
           
 boolean isFlagSet(int maskFlag)
          Tests if all of given bits are set in mask
 java.lang.String toString()
          Returns a String representation of this EventObject.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MASK_NON_PMP

public static final int MASK_NON_PMP
Mask for everything but "pmp:…"

See Also:
Constant Field Values

MASK_PMP_SCHEME

public static final int MASK_PMP_SCHEME
Mask for "pmp://…"

See Also:
Constant Field Values

MASK_PMP

public static final int MASK_PMP
Mask for "pmp:…"

See Also:
Constant Field Values

MASK_PMP_PREFIX

public static final int MASK_PMP_PREFIX
Mask for "pmp:prefix"

See Also:
Constant Field Values

MASK_PMP_STRING

public static final int MASK_PMP_STRING
Mask for "pmp:string.…"

See Also:
Constant Field Values

MASK_PMP_MACRO

public static final int MASK_PMP_MACRO
Mask for "pmp:macro.…"

See Also:
Constant Field Values

MASK_PMP_CODE

public static final int MASK_PMP_CODE
Mask for "pmp:code.…"

See Also:
Constant Field Values

MASK_PMP_STACK

public static final int MASK_PMP_STACK
Mask for "pmp:stack.…"

See Also:
Constant Field Values

MASK_PMP_LOG_EVENT

public static final int MASK_PMP_LOG_EVENT
Mask for "pmp:last.…"

See Also:
Constant Field Values

MASK_PMP_INPUT

public static final int MASK_PMP_INPUT
Mask for "pmp:input.…"

See Also:
Constant Field Values

MASK_PMP_OUTPUT

public static final int MASK_PMP_OUTPUT
Mask for "pmp:output.…"

See Also:
Constant Field Values

MASK_PMP_IO

public static final int MASK_PMP_IO
MASK_PMP_INPUT | MASK_PMP_OUTPUT

See Also:
Constant Field Values
Constructor Detail

MacroListModifyEvent

public MacroListModifyEvent(MacroList source,
                            java.lang.String macroName)
Creates event object for given name and source

Parameters:
source - source MacroList
macroName - name of macro which invoked this event
Method Detail

getDirectiveName

public java.lang.String getDirectiveName()
If this event was invoked by changing value of a configuration directive this method returns its name (without prefix). Otherwise returns empty string. Returns name of directive

Returns:
name of directive or empty string

getMask

public int getMask()

isFlagSet

public boolean isFlagSet(int maskFlag)
Tests if all of given bits are set in mask

Parameters:
maskFlag - bits
Returns:
true if all bits are set.

toString

public java.lang.String toString()
Returns a String representation of this EventObject.

Overrides:
toString in class java.util.EventObject
Returns:
A String representation of this EventObject.