org.eclipse.ocl.examples.common.utils
Class TracingOption

java.lang.Object
  extended by org.eclipse.ocl.examples.common.utils.TracingOption
All Implemented Interfaces:
java.lang.Appendable

public final class TracingOption
extends java.lang.Object
implements java.lang.Appendable


Field Summary
static TracingOption DEBUG
           
 
Constructor Summary
TracingOption(java.lang.String option)
           
TracingOption(java.lang.String pluginId, java.lang.String option)
           
 
Method Summary
 java.lang.Appendable append(char c)
           
 java.lang.Appendable append(java.lang.CharSequence csq)
           
 java.lang.Appendable append(java.lang.CharSequence csq, int start, int end)
           
 boolean isActive()
           
static void println(java.lang.Appendable appendable, java.lang.String string)
          Helper routine to append string to an appendable without throwing an exception.
 void println(java.lang.Class<?> clazz, java.lang.String string)
           
 void println(java.lang.String string)
           
 boolean resolveState()
           
 void setState(boolean state)
          Set the state explicitly, typically for use in a standalone environment such as a JUnit test that does not read the .options file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final TracingOption DEBUG
Constructor Detail

TracingOption

public TracingOption(@NonNull
                     java.lang.String option)

TracingOption

public TracingOption(java.lang.String pluginId,
                     java.lang.String option)
Method Detail

println

public static void println(@NonNull
                           java.lang.Appendable appendable,
                           @NonNull
                           java.lang.String string)
Helper routine to append string to an appendable without throwing an exception.

Parameters:
appendable -
string -

append

@NonNull
public java.lang.Appendable append(java.lang.CharSequence csq)
Specified by:
append in interface java.lang.Appendable

append

@NonNull
public java.lang.Appendable append(java.lang.CharSequence csq,
                                           int start,
                                           int end)
Specified by:
append in interface java.lang.Appendable

append

@NonNull
public java.lang.Appendable append(char c)
Specified by:
append in interface java.lang.Appendable

isActive

public boolean isActive()

println

public void println(@Nullable
                    java.lang.String string)

println

public void println(@NonNull
                    java.lang.Class<?> clazz,
                    @Nullable
                    java.lang.String string)

resolveState

public boolean resolveState()

setState

public void setState(boolean state)
Set the state explicitly, typically for use in a standalone environment such as a JUnit test that does not read the .options file.