org.apache.maven.continuum.management
Enum DatabaseFormat

java.lang.Object
  extended by java.lang.Enum<DatabaseFormat>
      extended by org.apache.maven.continuum.management.DatabaseFormat
All Implemented Interfaces:
Serializable, Comparable<DatabaseFormat>

public enum DatabaseFormat
extends Enum<DatabaseFormat>

Enumeration of known database formats.

Version:
$Id: DatabaseFormat.java 1372260 2012-08-13 04:29:09Z brett $

Enum Constant Summary
CONTINUUM_103
          Continuum 1.0.3 build database.
CONTINUUM_109
          Continuum pre-alpha build database.
CONTINUUM_11
          Continuum 1.1+ build database.
 
Method Summary
 String getContinuumToolRoleHint()
           
 String getJpoxVersion()
           
 String getRedbackToolRoleHint()
           
abstract  boolean isConvertibleFrom(DatabaseFormat sourceFormat)
          Whether a database can be converted from the given format to this format.
static DatabaseFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DatabaseFormat[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONTINUUM_103

public static final DatabaseFormat CONTINUUM_103
Continuum 1.0.3 build database.


CONTINUUM_109

public static final DatabaseFormat CONTINUUM_109
Continuum pre-alpha build database. Plexus Security 1.0-alpha-5.


CONTINUUM_11

public static final DatabaseFormat CONTINUUM_11
Continuum 1.1+ build database.

Method Detail

values

public static DatabaseFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DatabaseFormat c : DatabaseFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DatabaseFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isConvertibleFrom

public abstract boolean isConvertibleFrom(DatabaseFormat sourceFormat)
Whether a database can be converted from the given format to this format.

Parameters:
sourceFormat - the database format to convert from
Returns:
whether it can be successfully converted from that format

getJpoxVersion

public String getJpoxVersion()

getContinuumToolRoleHint

public String getContinuumToolRoleHint()

getRedbackToolRoleHint

public String getRedbackToolRoleHint()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.