de.smartics.exceptions.i18n.test
Enum FakeExceptionCode

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

public enum FakeExceptionCode
     
     
extends Enum< FakeExceptionCode>
implements NumberCode

Defines test codes.

Author:
Robert Reiner

Enum Constant Summary
DETAILS_AND_EXTRAS
          Provides details, implications and todo.
FULL
          Provides messages for all types.
MINIMAL
          Provides minimal message types.
STANDARD
          Provides the standard message types.
WITH_URL
          Provides minimal message types with URL.
 
Method Summary
 String getCode()
          
 String getComponentId()
          
 String getDisplayId()
          
 Integer getMajorNumber()
          
 Integer getMinorNumber()
          
 String toString()
          Returns the string representation of the object.
static FakeExceptionCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FakeExceptionCode[] 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

FULL

public static final FakeExceptionCode FULL
Provides messages for all types.


STANDARD

public static final FakeExceptionCode STANDARD
Provides the standard message types.


MINIMAL

public static final FakeExceptionCode MINIMAL
Provides minimal message types.


WITH_URL

public static final FakeExceptionCode WITH_URL
Provides minimal message types with URL.


DETAILS_AND_EXTRAS

public static final FakeExceptionCode DETAILS_AND_EXTRAS
Provides details, implications and todo.

Method Detail

values

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

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

valueOf

public static FakeExceptionCode 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
See Also:
Code.getCode()

getComponentId

public String getComponentId()

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

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<FakeExceptionCode>
Returns:
the string representation of the object.


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