org.objectweb.speedo.metadata
Class SpeedoVersion

java.lang.Object
  extended by org.objectweb.speedo.metadata.SpeedoVersion

public class SpeedoVersion
extends java.lang.Object

This class corresponds to the description of the attribute version in the XML file.

Author:
Y.Bersihand

Field Summary
static byte DATE_TIME
          Versioning strategy based on the date
static byte NO_VERSION
           
static byte STATE_COMPARISON
           
 byte strategy
          The strategy followed
static byte VERSION_NUMBER
           
 
Constructor Summary
SpeedoVersion()
           
 
Method Summary
static byte toByte(java.lang.String s)
          Transforms a String into a Byte.
static java.lang.String toString(byte b)
          Transforms a byte into a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_NUMBER

public static final byte VERSION_NUMBER
See Also:
Constant Field Values

STATE_COMPARISON

public static final byte STATE_COMPARISON
See Also:
Constant Field Values

DATE_TIME

public static final byte DATE_TIME
Versioning strategy based on the date

See Also:
Constant Field Values

NO_VERSION

public static final byte NO_VERSION
See Also:
Constant Field Values

strategy

public byte strategy
The strategy followed

Constructor Detail

SpeedoVersion

public SpeedoVersion()
Method Detail

toByte

public static byte toByte(java.lang.String s)
Transforms a String into a Byte. The String must corresponds to local variables. It returns the byte associated with the variable.

Parameters:
s - String to transform.
Returns:
the byte associated to the String.

toString

public static java.lang.String toString(byte b)
Transforms a byte into a String.

Parameters:
b - the byte to transform.
Returns:
the String associated to the byte.