Jalopy 1.0b10

de.hunsicker.jalopy.storage
Class ImportPolicy

java.lang.Object
  |
  +--de.hunsicker.jalopy.storage.ImportPolicy

public final class ImportPolicy
extends Object

Represents an import policy.

Version:
$Revision: 1.3 $
Author:
Marco Hunsicker

Field Summary
static ImportPolicy COLLAPSE
          Collapse single-type import statements.
static ImportPolicy DISABLED
          Apply no import optimization.
static ImportPolicy EXPAND
          Expand on-demand import statements.
 
Method Summary
 String getName()
          Returns the unique name of this policy.
 String toString()
          Returns a string representation of this object.
static ImportPolicy valueOf(String name)
          Returns the ImportPolicy for the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DISABLED

public static final ImportPolicy DISABLED
Apply no import optimization.

EXPAND

public static final ImportPolicy EXPAND
Expand on-demand import statements.

COLLAPSE

public static final ImportPolicy COLLAPSE
Collapse single-type import statements.
Method Detail

valueOf

public static ImportPolicy valueOf(String name)
Returns the ImportPolicy for the given name.
Parameters:
name - a valid policy name. Either "expand", "collapse" or "disabled".
Returns:
the corresponding policy for the given name.
Throws:
IllegalArgumentException - if name is no valid policy name.

getName

public String getName()
Returns the unique name of this policy.
Returns:
the unique name of this policy.

toString

public String toString()
Returns a string representation of this object.
Overrides:
toString in class Object
Returns:
A string representation of this object.

Jalopy 1.0b10

Submit a bug or feature.

For further information and documentation, visit the official Jalopy website.
This page generated: November 14 2002