de.hunsicker.jalopy.storage
Class ImportPolicy

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

public final class ImportPolicy
extends java.lang.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
 java.lang.String getName()
          Returns the unique name of this policy.
 java.lang.String toString()
          Returns a string representation of this object.
static ImportPolicy valueOf(java.lang.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(java.lang.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:
java.lang.IllegalArgumentException - if name is no valid policy name.

getName

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

Returns:
the unique name of this policy.

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.


Copyright © 1997-2005 Jalopy. All Rights Reserved.