Jalopy 1.0b10

de.hunsicker.jalopy.storage
Class History.Policy

java.lang.Object
  extended byde.hunsicker.jalopy.storage.History.Policy
Enclosing class:
History

public static final class History.Policy
extends java.lang.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
 java.lang.String getName()
          Returns the name of this policy.
 java.lang.String toString()
          Returns a string representation of this object.
static History.Policy valueOf(java.lang.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(java.lang.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:
java.lang.IllegalArgumentException - if an invalid name specified.

getName

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

Returns:
the name of this policy.

toString

public java.lang.String toString()
Returns a string representation of this 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 13 2004