org.modeldriven.fuml.xmi.validation
Enum ErrorCode
java.lang.Object
java.lang.Enum<ErrorCode>
org.modeldriven.fuml.xmi.validation.ErrorCode
- All Implemented Interfaces:
- Serializable, Comparable<ErrorCode>
public enum ErrorCode
- extends Enum<ErrorCode>
Represents the set of possible errors that may be incurred during XMI validation. Each
enumeration literal is linked by default to it's ErrorCategory as a
convenience for clients.
- Author:
- Scott Cinnamond
INVALID_REFERENCE
public static final ErrorCode INVALID_REFERENCE
INVALID_EXTERNAL_REFERENCE
public static final ErrorCode INVALID_EXTERNAL_REFERENCE
DUPLICATE_REFERENCE
public static final ErrorCode DUPLICATE_REFERENCE
UNDRESOLVED_URI
public static final ErrorCode UNDRESOLVED_URI
INVALID_NAMESPACE
public static final ErrorCode INVALID_NAMESPACE
NAMESPACE_REQUIRED
public static final ErrorCode NAMESPACE_REQUIRED
MALFORMED_DOCUMENT
public static final ErrorCode MALFORMED_DOCUMENT
MALFORMED_ELEMENT
public static final ErrorCode MALFORMED_ELEMENT
PROPERTY_REQUIRED
public static final ErrorCode PROPERTY_REQUIRED
PROPERTY_RANGE_ERROR
public static final ErrorCode PROPERTY_RANGE_ERROR
UNDEFINED_PROPERTY
public static final ErrorCode UNDEFINED_PROPERTY
UNDEFINED_CLASS
public static final ErrorCode UNDEFINED_CLASS
INVALID_TYPE
public static final ErrorCode INVALID_TYPE
ABSTRACT_CLASS_INSTANTIATION
public static final ErrorCode ABSTRACT_CLASS_INSTANTIATION
INVALID_STEREOTYPE_APPLICATION
public static final ErrorCode INVALID_STEREOTYPE_APPLICATION
DERIVED_PROPERTY_INSTANTIATION
public static final ErrorCode DERIVED_PROPERTY_INSTANTIATION
values
public static ErrorCode[] 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 (ErrorCode c : ErrorCode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ErrorCode 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
getCategory
public ErrorCategory getCategory()
value
public String value()
fromValue
public static ErrorCode fromValue(String v)
Copyright © 2012. All Rights Reserved.