fr.ifremer.isisfish.datastore
Enum CodeSourceStorage.Location

java.lang.Object
  extended by java.lang.Enum<CodeSourceStorage.Location>
      extended by fr.ifremer.isisfish.datastore.CodeSourceStorage.Location
All Implemented Interfaces:
Serializable, Comparable<CodeSourceStorage.Location>
Enclosing class:
CodeSourceStorage

public static enum CodeSourceStorage.Location
extends Enum<CodeSourceStorage.Location>

Location enum to look for script in official repository or community directory. Il y a un gros méchant hack qui tache car on ne peut pas initialiser un repertoire en particulier pour OFFICIAL. Certaines fois, cela depend du context de simulation, donc on ne la définie que lors de l'appel a getDirectories(). Implements iterable to be used in JavaFileManager.


Enum Constant Summary
ALL
           
COMMUNITY
           
OFFICIAL
           
 
Field Summary
protected  File[] directory
           
 
Method Summary
 File[] getDirectories()
           
 void setDirectory(File... directory)
           
static CodeSourceStorage.Location valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CodeSourceStorage.Location[] 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

OFFICIAL

public static final CodeSourceStorage.Location OFFICIAL

COMMUNITY

public static final CodeSourceStorage.Location COMMUNITY

ALL

public static final CodeSourceStorage.Location ALL
Field Detail

directory

protected File[] directory
Method Detail

values

public static CodeSourceStorage.Location[] 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 (CodeSourceStorage.Location c : CodeSourceStorage.Location.values())
    System.out.println(c);

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

valueOf

public static CodeSourceStorage.Location 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

getDirectories

public File[] getDirectories()

setDirectory

public void setDirectory(File... directory)


Copyright © 1999-2012 CodeLutin. All Rights Reserved.