org.nuiton.jredmine.model
Enum RedmineModelScope

java.lang.Object
  extended by java.lang.Enum<RedmineModelScope>
      extended by org.nuiton.jredmine.model.RedmineModelScope
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RedmineModelScope>

public enum RedmineModelScope
extends java.lang.Enum<RedmineModelScope>

Une enumeration pour caracteriser le scope d'une donnée dans le modèle.

Pour une donnée qui ne dépend de rien, elle est en scope none.

Pour une donnée qui dépend d'un projet, elle est en scope project.

Pour une donnée qui dépend d'une version, elle est en scpoe version.

Pour une donnée qui dépend d'une issue, elle est en scpoe issue.

A savoir qu'une donnée de scope version (resp. issue), elle est aussi de scope project car la version (resp. l'issue) dépend en dépend.

Since:
1.0.0
Author:
chemit

Enum Constant Summary
issue
          issue scope, requires a project and an issue
none
          none scope, requires nothing
project
          project scope, requires a project
version
          version scope, requires a project and a version
 
Method Summary
static RedmineModelScope valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RedmineModelScope[] 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

none

public static final RedmineModelScope none
none scope, requires nothing


project

public static final RedmineModelScope project
project scope, requires a project


version

public static final RedmineModelScope version
version scope, requires a project and a version


issue

public static final RedmineModelScope issue
issue scope, requires a project and an issue

Method Detail

values

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

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

valueOf

public static RedmineModelScope valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2009-2010 CodeLutin. All Rights Reserved.