ora.core.setting
Class FollowMode

java.lang.Object
  extended by ora.core.setting.FollowMode
All Implemented Interfaces:
java.io.Serializable

public class FollowMode
extends java.lang.Object
implements java.io.Serializable

Author:
Kristian Martin This class is used to define the followmode used by the analysers
See Also:
Serialized Form

Nested Class Summary
 class FollowMode.FollowModeHolder
           
 
Field Summary
static int FINAL_TYPE
           
static int FINALSTATIC_TYPE
           
static int FINALSTATICTRANSIENT_TYPE
           
static int FINALTRANSIENT_TYPE
           
static int NO_TYPE
           
static int STATIC_TYPE
           
static int STATICTRANSIENT_TYPE
           
static int TRANSIENT_TYPE
           
 
Constructor Summary
FollowMode()
           
FollowMode(java.lang.String value)
           
FollowMode(java.lang.String value, boolean autochangeTypeSeven)
          Constructor of FolloMode
 
Method Summary
 boolean follow(java.lang.reflect.Field f)
          Method evaluates whether to follow on the given filed
 java.lang.String getDetailString()
          This method returns textual description of configured types to be followed
It is used for presentation in the ui.
 FollowMode.FollowModeHolder getFollowModeHolder()
           
 void setFollowMode(java.lang.String types)
          This methods sets the types of modifiers to be followed.
 java.lang.String toString()
          This method returns current configuration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_TYPE

public static final int NO_TYPE
See Also:
Constant Field Values

FINAL_TYPE

public static final int FINAL_TYPE
See Also:
Constant Field Values

FINALSTATIC_TYPE

public static final int FINALSTATIC_TYPE
See Also:
Constant Field Values

FINALTRANSIENT_TYPE

public static final int FINALTRANSIENT_TYPE
See Also:
Constant Field Values

STATIC_TYPE

public static final int STATIC_TYPE
See Also:
Constant Field Values

STATICTRANSIENT_TYPE

public static final int STATICTRANSIENT_TYPE
See Also:
Constant Field Values

TRANSIENT_TYPE

public static final int TRANSIENT_TYPE
See Also:
Constant Field Values

FINALSTATICTRANSIENT_TYPE

public static final int FINALSTATICTRANSIENT_TYPE
See Also:
Constant Field Values
Constructor Detail

FollowMode

public FollowMode()

FollowMode

public FollowMode(java.lang.String value)

FollowMode

public FollowMode(java.lang.String value,
                  boolean autochangeTypeSeven)
Constructor of FolloMode

Parameters:
value - containing supported types
autochangeTypeSeven - adjusts whether typeSeven should be selected automatically based on the provided values In case autochangeTypeSeven is selected and 7 is part of value despite the fact it wouldn't get considered, it will be selected as the wish to select it overrides the flag itself. This depends also on the order of the provided value.
Method Detail

toString

public java.lang.String toString()
This method returns current configuration

Overrides:
toString in class java.lang.Object
Returns:
String containing current configured types to be followed separated by ; Meaning of the values
  • NO_TYPE = 0;
  • FINAL_TYPE = 1;
  • FINALSTATIC_TYPE = 2;
  • FINALTRANSIENT_TYPE = 3;
  • STATIC_TYPE = 4;
  • STATICTRANSIENT_TYPE = 5;
  • TRANSIENT_TYPE = 6;
  • FINALSTATICTRANSIENT_TYPE = 7;

  • getDetailString

    public java.lang.String getDetailString()
    This method returns textual description of configured types to be followed
    It is used for presentation in the ui.

    Returns:
    detailed string about current configuration containing text description

    setFollowMode

    public void setFollowMode(java.lang.String types)
    This methods sets the types of modifiers to be followed.

    Parameters:
    types - String of integers separated by , or ; Integers to be used:
  • NO_TYPE = 0;
  • FINAL_TYPE = 1;
  • FINALSTATIC_TYPE = 2;
  • FINALTRANSIENT_TYPE = 3;
  • STATIC_TYPE = 4;
  • STATICTRANSIENT_TYPE = 5;
  • TRANSIENT_TYPE = 6;
  • FINALSTATICTRANSIENT_TYPE = 7;
  • Ideal results will be achieved by using sorted integers, e.g. 0,1,7 !

    follow

    public boolean follow(java.lang.reflect.Field f)
    Method evaluates whether to follow on the given filed

    Parameters:
    f - Field to be evaluated
    Returns:
    boolean indicating to follow or not

    getFollowModeHolder

    public FollowMode.FollowModeHolder getFollowModeHolder()