Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.crosswire.jsword.index.lucene
Class IndexMetadata

    java.lang.Object
      org.crosswire.jsword.index.lucene.IndexMetadata

    public class IndexMetadata

extends Object

A singleton that Reads and Maintains IndexMetadata from properties file All version number in the properties file must be float.

Author:
  Sijo Cherian [sijocherian at yahoo dot com]
See Also:
  `for license details.
  The copyright to this program is held by it's authors.`

Field Summary
`static String` | `INDEX_VERSION`
`static float` | `INDEX_VERSION_1_1`
`static float` | `INDEX_VERSION_1_2`
`static String` | `LATEST_INDEX_VERSION`
`private static Logger` | `log`
`static String` | `LUCENE_VERSION`
`private static IndexMetadata` | `myInstance`
`private Properties` | `props`

Constructor Summary
`private` | `IndexMetadata()`

Method Summary
`float` | `getInstalledIndexVersion()`
`float` | `getLatestIndexVersion()`
`float` | `getLuceneVersion()`
`static IndexMetadata` | `instance()` All access to IndexMetadata is through this single instance.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### INDEX_VERSION

    public static final String INDEX_VERSION

See Also:
  Constant Field Values

### LATEST_INDEX_VERSION

    public static final String LATEST_INDEX_VERSION

See Also:
  Constant Field Values

### LUCENE_VERSION

    public static final String LUCENE_VERSION

See Also:
  Constant Field Values

### INDEX_VERSION_1_1

    public static final float INDEX_VERSION_1_1

See Also:
  Constant Field Values

### INDEX_VERSION_1_2

    public static final float INDEX_VERSION_1_2

See Also:
  Constant Field Values

### log

    private static final Logger log

### myInstance

    private static IndexMetadata myInstance

### props

    private Properties props

Constructor Detail

### IndexMetadata

    private IndexMetadata()

Method Detail

### instance

    public static IndexMetadata instance()

  All access to IndexMetadata is through this single instance.

  Returns:
    the singleton instance

### getInstalledIndexVersion

    public float getInstalledIndexVersion()

### getLuceneVersion

    public float getLuceneVersion()

### getLatestIndexVersion

    public float getLatestIndexVersion()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Copyright ¨ 2003-2007
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD