org.intuitel.slom
public enum SLOMError extends Enum<SLOMError>
The org.intuitel.slom.SLOM.isValid() method checks whether a course representation is written as SLOM or not. The result of the validation is an error code that informs of the problem (or the success). This class defines the allowed error codes
Further information of the SLOM format can be found at the INTUITEL project page, at deliverable D4.1
SLOM
Enum Constant and Description |
---|
CCM_NOT_VALID |
CM_NOT_VALID |
NO_CCM_FOUND |
NO_CM_FOUND |
NO_ZIP_FILE |
VALID |
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Returns the error code
|
String |
getDescription()
Returns the error description
|
String |
toString() |
static SLOMError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SLOMError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SLOMError VALID
public static final SLOMError NO_ZIP_FILE
public static final SLOMError NO_CM_FOUND
public static final SLOMError NO_CCM_FOUND
public static final SLOMError CM_NOT_VALID
public static final SLOMError CCM_NOT_VALID
public static SLOMError[] values()
for (SLOMError c : SLOMError.values()) System.out.println(c);
public static SLOMError valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String getDescription()
public String getCode()
Copyright © 2014. All rights reserved.