jBPM :: BPMN2 EMF Extension Model 6.2.0-SNAPSHOT

bpsim
Enum TimeUnit

java.lang.Object
  extended by java.lang.Enum<TimeUnit>
      extended by bpsim.TimeUnit
All Implemented Interfaces:
Serializable, Comparable<TimeUnit>, org.eclipse.emf.common.util.Enumerator

public enum TimeUnit
extends Enum<TimeUnit>
implements org.eclipse.emf.common.util.Enumerator

A representation of the literals of the enumeration 'Time Unit', and utility methods for working with them.

See Also:
BpsimPackage.getTimeUnit()

Enum Constant Summary
DAY
          The 'Day' literal object
HOUR
          The 'Hour' literal object
MIN
          The 'Min' literal object
MS
          The 'Ms' literal object
S
          The 'S' literal object
YEAR
          The 'Year' literal object
 
Field Summary
static int DAY_VALUE
          The 'Day' literal value
static int HOUR_VALUE
          The 'Hour' literal value
static int MIN_VALUE
          The 'Min' literal value
static int MS_VALUE
          The 'Ms' literal value
static int S_VALUE
          The 'S' literal value
static List<TimeUnit> VALUES
          A public read-only list of all the 'Time Unit' enumerators
static int YEAR_VALUE
          The 'Year' literal value
 
Method Summary
static TimeUnit get(int value)
          Returns the 'Time Unit' literal with the specified integer value
static TimeUnit get(String literal)
          Returns the 'Time Unit' literal with the specified literal value
static TimeUnit getByName(String name)
          Returns the 'Time Unit' literal with the specified name
 String getLiteral()
           
 String getName()
           
 int getValue()
           
 String toString()
          Returns the literal value of the enumerator, which is its string representation
static TimeUnit valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimeUnit[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MS

public static final TimeUnit MS
The 'Ms' literal object.

See Also:
MS_VALUE

S

public static final TimeUnit S
The 'S' literal object.

See Also:
S_VALUE

MIN

public static final TimeUnit MIN
The 'Min' literal object.

See Also:
MIN_VALUE

HOUR

public static final TimeUnit HOUR
The 'Hour' literal object.

See Also:
HOUR_VALUE

DAY

public static final TimeUnit DAY
The 'Day' literal object.

See Also:
DAY_VALUE

YEAR

public static final TimeUnit YEAR
The 'Year' literal object.

See Also:
YEAR_VALUE
Field Detail

MS_VALUE

public static final int MS_VALUE
The 'Ms' literal value.

If the meaning of 'Ms' literal object isn't clear, there really should be more of a description here...

See Also:
MS, Constant Field Values

S_VALUE

public static final int S_VALUE
The 'S' literal value.

If the meaning of 'S' literal object isn't clear, there really should be more of a description here...

See Also:
S, Constant Field Values

MIN_VALUE

public static final int MIN_VALUE
The 'Min' literal value.

If the meaning of 'Min' literal object isn't clear, there really should be more of a description here...

See Also:
MIN, Constant Field Values

HOUR_VALUE

public static final int HOUR_VALUE
The 'Hour' literal value.

If the meaning of 'Hour' literal object isn't clear, there really should be more of a description here...

See Also:
HOUR, Constant Field Values

DAY_VALUE

public static final int DAY_VALUE
The 'Day' literal value.

If the meaning of 'Day' literal object isn't clear, there really should be more of a description here...

See Also:
DAY, Constant Field Values

YEAR_VALUE

public static final int YEAR_VALUE
The 'Year' literal value.

If the meaning of 'Year' literal object isn't clear, there really should be more of a description here...

See Also:
YEAR, Constant Field Values

VALUES

public static final List<TimeUnit> VALUES
A public read-only list of all the 'Time Unit' enumerators.

Method Detail

values

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

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

valueOf

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

get

public static TimeUnit get(String literal)
Returns the 'Time Unit' literal with the specified literal value.


getByName

public static TimeUnit getByName(String name)
Returns the 'Time Unit' literal with the specified name.


get

public static TimeUnit get(int value)
Returns the 'Time Unit' literal with the specified integer value.


getValue

public int getValue()

Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator

getName

public String getName()

Specified by:
getName in interface org.eclipse.emf.common.util.Enumerator

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface org.eclipse.emf.common.util.Enumerator

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<TimeUnit>

jBPM :: BPMN2 EMF Extension Model 6.2.0-SNAPSHOT

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.