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
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.
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.