de.bsvrz.dav.daf.main.impl.config.request
Enum KindOfVersion

java.lang.Object
  extended by java.lang.Enum<KindOfVersion>
      extended by de.bsvrz.dav.daf.main.impl.config.request.KindOfVersion
All Implemented Interfaces:
Serializable, Comparable<KindOfVersion>

public enum KindOfVersion
extends Enum<KindOfVersion>

Stellt alle Möglichkeiten dar, in der ein Objekt in einer Version gültig sein kann.

Author:
Kappich Systemberatung

Enum Constant Summary
IN_ALL_VERSIONS
          In allen Versionen
IN_ANY_VERSIONS
          In jeder Version
IN_NEXT_VERSION
          In der nächsten Version
IN_VERSION
          In der derzeit benutzten Version
 
Field Summary
private  byte _code
           
private  String _name
           
 
Method Summary
 byte getCode()
           
static KindOfVersion getInstance(byte code)
           
 String getName()
           
 String toString()
           
static KindOfVersion valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KindOfVersion[] 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, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IN_NEXT_VERSION

public static final KindOfVersion IN_NEXT_VERSION
In der nächsten Version


IN_VERSION

public static final KindOfVersion IN_VERSION
In der derzeit benutzten Version


IN_ALL_VERSIONS

public static final KindOfVersion IN_ALL_VERSIONS
In allen Versionen


IN_ANY_VERSIONS

public static final KindOfVersion IN_ANY_VERSIONS
In jeder Version

Field Detail

_name

private final String _name

_code

private final byte _code
Method Detail

values

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

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

valueOf

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

getInstance

public static KindOfVersion getInstance(byte code)

getCode

public byte getCode()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Enum<KindOfVersion>