Jalopy 1.0b10

de.hunsicker.jalopy.storage
Class History.Policy

java.lang.Object
  |
  +--de.hunsicker.jalopy.storage.History.Policy
Enclosing class:
History

public static final class History.Policy
extends Object

Represents a history policy.

Since:
1.0b8

Field Summary
static History.Policy COMMENT
          Insert a single line comment header at the top of every formatted file.
static History.Policy DISABLED
          Don't use the history.
static History.Policy FILE
          Track file modifications in a binary file stored in the Jalopy settings directory.
 
Method Summary
 String getName()
          Returns the name of this policy.
 String toString()
          Returns a string representation of this object.
static History.Policy valueOf(String name)
          Returns the policy 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 History.Policy DISABLED
Don't use the history.

COMMENT

public static final History.Policy COMMENT
Insert a single line comment header at the top of every formatted file.

FILE

public static final History.Policy FILE
Track file modifications in a binary file stored in the Jalopy settings directory.
Method Detail

valueOf

public static History.Policy valueOf(String name)
Returns the policy for the given name.
Parameters:
name - a valid policy name. Either "disabled", "file" or "comment" (case-sensitive).
Returns:
The policy for the given name.
Throws:
IllegalArgumentException - if an invalid name specified.

getName

public String getName()
Returns the name of this policy.
Returns:
the 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