Package eu.bandm.tools.xslt.base
Class Trace
java.lang.Object
eu.bandm.tools.xslt.base.Trace
Control for showing/suppressing different kinds of trace messages.
Maintains a set of trace flags from an enumeration type from Options.
ATTENTION setLocation NOT operative, is already realized by "MessageLocationFilter". BUT the mapping of messages (eg with d2d ".ddf" sources) is not yet correctly realized.
LATER possibly more control, eg. thresholds on depths, regions, etc.
-
Field Summary
Modifier and TypeFieldDescriptionprotected EnumSet<Options.traceflag>
protected Set<Location<XMLDocumentIdentifier>>
static final int
protected Set<NamespaceName>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reflectVerbosityLevel
(int v) To behave similar like the "verbosity level" in other tools.void
protected void
protected void
boolean
showLogs()
Whether to print logs.boolean
Whether to print warnings.boolean
boolean
boolean
test
(Options.traceflag flag, NamespaceName nsname, @Opt Location loc) toString()
-
Field Details
-
MAXCOL
public static final int MAXCOL- See Also:
-
flags
-
localnames
-
namespacenames
-
locations
-
-
Constructor Details
-
Trace
public Trace()
-
-
Method Details
-
showWarnings
public boolean showWarnings()Whether to print warnings. Flag "silent" suppresses logs and warnings; flag "silent and justWarnings" enables warnings. -
showLogs
public boolean showLogs()Whether to print logs. Flag "silent" or "justWarnings" suppress log. -
reflectVerbosityLevel
public void reflectVerbosityLevel(int v) To behave similar like the "verbosity level" in other tools. -
setNames
-
setLocations
-
test
- Returns:
- whether the given flag is set.
-
test
- Returns:
- whether the filter criteria are met.
-
test
- Returns:
- whether the filter criteria are met.
-
setFlags
-
toString
-