de.smartics.exceptions.test.dummy
Enum DummyNumberCode

Package class diagram package DummyNumberCode
java.lang.Object
  extended by java.lang.Enum<DummyNumberCode>
      extended by de.smartics.exceptions.test.dummy.DummyNumberCode
All Implemented Interfaces:
NumberCode, Code, Serializable, Comparable< DummyNumberCode>

public enum DummyNumberCode
     
     
extends Enum< DummyNumberCode>
implements NumberCode

Defines the parsing exception codes for this package.

Author:
Robert Reiner

Enum Constant Summary
ONE
          The first code.
THREE
          The third code.
TWO
          The second code.
ZERO
          The zeroth code.
 
Method Summary
 String getCode()
          
 String getComponentId()
          
 String getDisplayId()
          
 Integer getMajorNumber()
          
 Integer getMinorNumber()
          
 String toString()
          Returns the string representation of the object.
static DummyNumberCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DummyNumberCode[] 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

ZERO

public static final DummyNumberCode ZERO
The zeroth code.


ONE

public static final DummyNumberCode ONE
The first code.


TWO

public static final DummyNumberCode TWO
The second code.


THREE

public static final DummyNumberCode THREE
The third code.

Method Detail

values

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

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

valueOf

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

getCode

public String getCode()

Specified by:
getCode in interface Code

getComponentId

public String getComponentId()

Specified by:
getComponentId in interface Code

getMajorNumber

public Integer getMajorNumber()

Specified by:
getMajorNumber in interface NumberCode
See Also:
NumberCode.getMajorNumber()

getMinorNumber

public Integer getMinorNumber()

Specified by:
getMinorNumber in interface NumberCode
See Also:
NumberCode.getMinorNumber()

getDisplayId

public String getDisplayId()

Specified by:
getDisplayId in interface Code
See Also:
Code.getDisplayId()

toString

public String toString()
Returns the string representation of the object.

Specified by:
toString in interface Code
Overrides:
toString in class Enum<DummyNumberCode>
Returns:
the string representation of the object.


Copyright © 2007-$2011 Kronseder & Reiner GmbH - smartics. All Rights Reserved.