org.objectweb.dsrg.sofa.util
Enum DependencyCalculator.SearchMode

java.lang.Object
  extended by java.lang.Enum<DependencyCalculator.SearchMode>
      extended by org.objectweb.dsrg.sofa.util.DependencyCalculator.SearchMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DependencyCalculator.SearchMode>
Enclosing class:
DependencyCalculator

public static enum DependencyCalculator.SearchMode
extends java.lang.Enum<DependencyCalculator.SearchMode>

Affects the way how the DependencyCalculator searches the dependencies.


Enum Constant Summary
ALL
          Returns all first class entities in the entity's dependency tree.
CODE_ONLY
          Seeks only for the entities code bundles.
DIRECT
          Seeks for the first class entities that ale referenced directly from given entity.
 
Method Summary
static DependencyCalculator.SearchMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DependencyCalculator.SearchMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CODE_ONLY

public static final DependencyCalculator.SearchMode CODE_ONLY
Seeks only for the entities code bundles.


DIRECT

public static final DependencyCalculator.SearchMode DIRECT
Seeks for the first class entities that ale referenced directly from given entity. Non-first class entities are searched through, but the search stops on the first class entity encountered and backtracks for more.


ALL

public static final DependencyCalculator.SearchMode ALL
Returns all first class entities in the entity's dependency tree.

Method Detail

values

public static DependencyCalculator.SearchMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DependencyCalculator.SearchMode c : DependencyCalculator.SearchMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DependencyCalculator.SearchMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null