Package ucar.nc2.util
Class DebugFlagsImpl
- java.lang.Object
-
- ucar.nc2.util.DebugFlagsImpl
-
- All Implemented Interfaces:
DebugFlags
public class DebugFlagsImpl extends Object implements DebugFlags
An implementation of DebugFlags TODO will move in ver 6
-
-
Constructor Summary
Constructors Constructor Description DebugFlagsImpl()All flags are offDebugFlagsImpl(String flagsOn)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSetFlags()Return the string representing the current debug flag(s) set.booleanisSet(String flagName)Test if named debug flag is set.voidset(String flagName, boolean value)Set named debug flag.
-
-
-
Constructor Detail
-
DebugFlagsImpl
public DebugFlagsImpl()
All flags are off
-
DebugFlagsImpl
public DebugFlagsImpl(String flagsOn)
Constructor.- Parameters:
flagsOn- space-separated list of flags to turn on.
-
-
Method Detail
-
isSet
public boolean isSet(String flagName)
Description copied from interface:DebugFlagsTest if named debug flag is set.- Specified by:
isSetin interfaceDebugFlags- Parameters:
flagName- name of flag- Returns:
- true if named flag is set true
-
set
public void set(String flagName, boolean value)
Description copied from interface:DebugFlagsSet named debug flag.- Specified by:
setin interfaceDebugFlags- Parameters:
flagName- set this flagvalue- set to this value
-
getSetFlags
public String getSetFlags()
Description copied from interface:DebugFlagsReturn the string representing the current debug flag(s) set. Flags can be either or false - they just need to be set.- Specified by:
getSetFlagsin interfaceDebugFlags
-
-