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 String
getSetFlags()
Return the string representing the current debug flag(s) set.boolean
isSet(String flagName)
Test if named debug flag is set.void
set(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:DebugFlags
Test if named debug flag is set.- Specified by:
isSet
in 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:DebugFlags
Set named debug flag.- Specified by:
set
in interfaceDebugFlags
- Parameters:
flagName
- set this flagvalue
- set to this value
-
getSetFlags
public String getSetFlags()
Description copied from interface:DebugFlags
Return the string representing the current debug flag(s) set. Flags can be either or false - they just need to be set.- Specified by:
getSetFlags
in interfaceDebugFlags
-
-