|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ComponentErrors>
org.objectweb.fractal.adl.components.ComponentErrors
public enum ComponentErrors
ErrorTemplate group for the components package.
| Enum Constant Summary | |
|---|---|
COMPONENT_NAME_MISSING
|
|
DEFINITION_CYCLE
|
|
DUPLICATED_COMPONENT_NAME
|
|
INVALID_PATH
|
|
MERGE_ERROR
|
|
SHARED_WITH_DIFFERENT_NAME
|
|
| Field Summary | |
|---|---|
static java.lang.String |
GROUP_ID
The groupId of ErrorTemplates defined in this enumeration. |
| Method Summary | |
|---|---|
int |
getErrorId()
Returns the number that identify this ErrorTemplate in its group. |
java.lang.String |
getFormat()
Returns the format of the error message that will be issued for errors of that type. |
java.lang.String |
getFormatedMessage(java.lang.Object... args)
Returns a formated error message using the given arguments. |
java.lang.String |
getGroupId()
Returns the identifier of the error group this ErrorTemplate belongs. |
static ComponentErrors |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ComponentErrors[] |
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, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ComponentErrors DEFINITION_CYCLE
public static final ComponentErrors COMPONENT_NAME_MISSING
public static final ComponentErrors DUPLICATED_COMPONENT_NAME
public static final ComponentErrors INVALID_PATH
public static final ComponentErrors SHARED_WITH_DIFFERENT_NAME
public static final ComponentErrors MERGE_ERROR
| Field Detail |
|---|
public static final java.lang.String GROUP_ID
| Method Detail |
|---|
public static ComponentErrors[] values()
for (ComponentErrors c : ComponentErrors.values()) System.out.println(c);
public static ComponentErrors valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic int getErrorId()
ErrorTemplategroup. This number must be unique in the error group
this ErrorTemplate belongs. It is recommended for this identifier not to be
greater that 999.
getErrorId in interface ErrorTemplategroup.public java.lang.String getGroupId()
ErrorTemplateAC, BC for instance) since it
will be issued in the error message as a prefix.
getGroupId in interface ErrorTemplatepublic java.lang.String getFormatedMessage(java.lang.Object... args)
ErrorTemplate
getFormatedMessage in interface ErrorTemplateargs - the format arguments.
String.format(String, Object...)public java.lang.String getFormat()
ErrorTemplateFormatter class.
getFormat in interface ErrorTemplate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||