org.eclipse.graphiti.features.impl
Class Reason

java.lang.Object
  extended by org.eclipse.graphiti.features.impl.Reason
All Implemented Interfaces:
IReason

public class Reason
extends java.lang.Object
implements IReason

The Class Reason.


Field Summary
private  boolean bool
           
private static java.lang.String FALSE_REASON_TEXT
           
private  java.lang.String text
           
private static java.lang.String TRUE_REASON_TEXT
           
 
Constructor Summary
Reason(boolean b)
          Creates a new Reason.
Reason(boolean b, java.lang.String reasonText)
          Creates a new Reason.
 
Method Summary
static IReason createFalseReason()
          Creates the false reason.
static IReason createFalseReason(java.lang.String string)
          Creates the false reason.
static IReason createTrueReason()
          Creates the true reason.
static IReason createTrueReason(java.lang.String string)
          Creates the true reason.
 java.lang.String getText()
          Gets the text.
 void setBool(boolean bool)
          Sets the bool.
 void setText(java.lang.String reasonText)
          Sets the text.
 boolean toBoolean()
          Converts to boolean.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FALSE_REASON_TEXT

private static final java.lang.String FALSE_REASON_TEXT
See Also:
Constant Field Values

TRUE_REASON_TEXT

private static final java.lang.String TRUE_REASON_TEXT
See Also:
Constant Field Values

bool

private boolean bool

text

private java.lang.String text
Constructor Detail

Reason

public Reason(boolean b)
Creates a new Reason.

Parameters:
b - the bool

Reason

public Reason(boolean b,
              java.lang.String reasonText)
Creates a new Reason.

Parameters:
b - the bool
reasonText - the reason text
Method Detail

createFalseReason

public static IReason createFalseReason()
Creates the false reason.

Returns:
the i reason

createFalseReason

public static IReason createFalseReason(java.lang.String string)
Creates the false reason.

Parameters:
string - the string
Returns:
the i reason

createTrueReason

public static IReason createTrueReason()
Creates the true reason.

Returns:
the i reason

createTrueReason

public static IReason createTrueReason(java.lang.String string)
Creates the true reason.

Parameters:
string - the string
Returns:
the i reason

getText

public java.lang.String getText()
Description copied from interface: IReason
Gets the text.

Specified by:
getText in interface IReason
Returns:
the reason in words

setBool

public void setBool(boolean bool)
Sets the bool.

Parameters:
bool - the new bool

setText

public void setText(java.lang.String reasonText)
Sets the text.

Parameters:
reasonText - the new text

toBoolean

public boolean toBoolean()
Description copied from interface: IReason
Converts to boolean.

Specified by:
toBoolean in interface IReason
Returns:
true, if to boolean

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright (c) SAP AG 2005, 2012.