org.freehep.application.studio
Enum PluginDir

java.lang.Object
  extended by java.lang.Enum<PluginDir>
      extended by org.freehep.application.studio.PluginDir
All Implemented Interfaces:
Serializable, Comparable<PluginDir>

public enum PluginDir
extends Enum<PluginDir>

Enumeration of application extension directories.


Enum Constant Summary
BUILTIN
           
GROUP
           
SYSTEM
           
USER
           
 
Method Summary
 String getLabel()
          Returns a label for this directory to be used by GUI and loggers.
static PluginDir[] inverseSearchOrder()
          Returns extensions directories in the inverse plugin search order.
static PluginDir[] searchOrder()
          Returns extensions directories in the plugin search order (builtin - user - group - system).
static PluginDir[] sgu()
          Returns extensions directories in the inverse plugin search order, excluding BUILTIN.
static PluginDir[] ugs()
          Returns extensions directories in the plugin search order, excluding BUILTIN.
static PluginDir valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PluginDir[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BUILTIN

public static final PluginDir BUILTIN

SYSTEM

public static final PluginDir SYSTEM

GROUP

public static final PluginDir GROUP

USER

public static final PluginDir USER
Method Detail

values

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

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

valueOf

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

getLabel

public String getLabel()
Returns a label for this directory to be used by GUI and loggers.


searchOrder

public static PluginDir[] searchOrder()
Returns extensions directories in the plugin search order (builtin - user - group - system).


inverseSearchOrder

public static PluginDir[] inverseSearchOrder()
Returns extensions directories in the inverse plugin search order.


sgu

public static PluginDir[] sgu()
Returns extensions directories in the inverse plugin search order, excluding BUILTIN.


ugs

public static PluginDir[] ugs()
Returns extensions directories in the plugin search order, excluding BUILTIN.



Copyright © 2000-2014 FreeHEP. All Rights Reserved.