org.nuxeo.scenari.model
Enum ScenariNode.VersionOrigin

java.lang.Object
  extended by java.lang.Enum<ScenariNode.VersionOrigin>
      extended by org.nuxeo.scenari.model.ScenariNode.VersionOrigin
All Implemented Interfaces:
Serializable, Comparable<ScenariNode.VersionOrigin>
Enclosing interface:
ScenariNode

public static enum ScenariNode.VersionOrigin
extends Enum<ScenariNode.VersionOrigin>


Enum Constant Summary
history
          Version créée pour mémoriser automatiquement un état de ce noeud.
master
          Item racine de la création d'une version.
slave
          Item versionné car il participe au réseau d'un item racine versionné.
 
Method Summary
static ScenariNode.VersionOrigin valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ScenariNode.VersionOrigin[] 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

master

public static final ScenariNode.VersionOrigin master
Item racine de la création d'une version.


slave

public static final ScenariNode.VersionOrigin slave
Item versionné car il participe au réseau d'un item racine versionné.

Une version Slave n'est créée que si il existe ni Master ni Slave non dirty par rapport au "live" document.


history

public static final ScenariNode.VersionOrigin history
Version créée pour mémoriser automatiquement un état de ce noeud.

Ce type de version est crée sur un changement de contributeur sur un item.

Method Detail

values

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

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

valueOf

public static ScenariNode.VersionOrigin 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


Copyright © 2011 Nuxeo SAS. All Rights Reserved.