org.nakedobjects.applib.fixtures
Enum FixtureType

java.lang.Object
  extended by java.lang.Enum<FixtureType>
      extended by org.nakedobjects.applib.fixtures.FixtureType
All Implemented Interfaces:
Serializable, Comparable<FixtureType>

public enum FixtureType
extends Enum<FixtureType>

Enumerates the different types of fixtures supported.

See Also:
InstallableFixture.getType()

Enum Constant Summary
OBJECT_STORE
          A fixture that installs data (either reference data or operational data) into an object store.
OTHER
          A fixture that neither installs data into the object store nor perspectives into the UserProfileService.
USER_PROFILE
          Analogous to FixtureType#DATA, but for fixtures (in particular, the PerspectiveFixture) that are used to setup Profiles and their Perspectives.
 
Method Summary
static FixtureType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FixtureType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OBJECT_STORE

public static final FixtureType OBJECT_STORE
A fixture that installs data (either reference data or operational data) into an object store.

Some object stores are in-memory only, in which case these will always want fixtures of this type to be installed. However, for object stores that persist the data (such as XML or to an RDBMS), these typically do not want data fixtures run (except possibly for the very first time booted to initially seed them).


USER_PROFILE

public static final FixtureType USER_PROFILE
Analogous to FixtureType#DATA, but for fixtures (in particular, the PerspectiveFixture) that are used to setup Profiles and their Perspectives.

See Also:
UserProfileService

OTHER

public static final FixtureType OTHER
A fixture that neither installs data into the object store nor perspectives into the UserProfileService.

Fixtures of this type are always installed. Typical examples are:

Method Detail

values

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

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

valueOf

public static FixtureType 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


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.