org.openpermis.policy.io
Enum ProblemType

java.lang.Object
  extended by java.lang.Enum<ProblemType>
      extended by org.openpermis.policy.io.ProblemType
All Implemented Interfaces:
Serializable, Comparable<ProblemType>

public enum ProblemType
extends Enum<ProblemType>

Enumeration of all problem types that can occur during serialization.

See Also:
ProblemReporter
Since:
0.3.0

Enum Constant Summary
ELEMENT_SKIPPED
          Indicates that portion of a policy have been skipped during import.
ID_CONVERTED
          Indicates that an identifier has been converted during import.
 
Method Summary
 String getKey()
          Returns translation key of the problem type.
 String getMessage(Object... parameters)
          Returns a default message for the problem type.
 Class<?>[] getParameterTypes()
          Returns the parameter types expected by this problem type.
static ProblemType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProblemType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ELEMENT_SKIPPED

public static final ProblemType ELEMENT_SKIPPED
Indicates that portion of a policy have been skipped during import.

Parameters include the location and the element skipped.

Since:
0.3.0

ID_CONVERTED

public static final ProblemType ID_CONVERTED
Indicates that an identifier has been converted during import.

Parameters include the location, the element and attribute for which the conversion was performed followed by the original identifier and the resulting URI.

Since:
0.3.0
Method Detail

values

public static final ProblemType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ProblemType c : ProblemType.values())
        System.out.println(c);

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

valueOf

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

getKey

public String getKey()
Returns translation key of the problem type.

Returns:
translation key of the problem type.
Since:
0.3.0

getParameterTypes

public Class<?>[] getParameterTypes()
Returns the parameter types expected by this problem type.

Returns:
the parameter types expected by this problem type.
Since:
0.3.0

getMessage

public String getMessage(Object... parameters)
Returns a default message for the problem type.

Parameters:
parameters - the parameters of the problem type.
Returns:
the message requested.
Since:
0.3.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:49
Copyright (c) 2002-2007 Ergon Informatik AG