ucar.nc2.util
Class DebugFlagsImpl

java.lang.Object
  extended by ucar.nc2.util.DebugFlagsImpl
All Implemented Interfaces:
DebugFlags

public class DebugFlagsImpl
extends java.lang.Object
implements DebugFlags

An implementation of DebugFlags

Author:
caron

Constructor Summary
DebugFlagsImpl(java.lang.String flagsOn)
          Constructor.
 
Method Summary
 boolean isSet(java.lang.String flagName)
          Test if named debug flag is set.
 void set(java.lang.String flagName, boolean value)
          Set named debug flag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugFlagsImpl

public DebugFlagsImpl(java.lang.String flagsOn)
Constructor.

Parameters:
flagsOn - space-separated list of flags to turn on.
Method Detail

isSet

public boolean isSet(java.lang.String flagName)
Description copied from interface: DebugFlags
Test if named debug flag is set.

Specified by:
isSet in interface DebugFlags
Parameters:
flagName - name of flag
Returns:
true if named flag is set true

set

public void set(java.lang.String flagName,
                boolean value)
Description copied from interface: DebugFlags
Set named debug flag.

Specified by:
set in interface DebugFlags
Parameters:
flagName - set this flag
value - set to this value