Package org.faktorips.runtime.model.type
Enum DocumentationKind
- java.lang.Object
-
- java.lang.Enum<DocumentationKind>
-
- org.faktorips.runtime.model.type.DocumentationKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DocumentationKind>
public enum DocumentationKind extends java.lang.Enum<DocumentationKind>
Different kinds of documentation messages.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DESCRIPTIONLABELPLURAL_LABEL
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringQNAME_SEPARATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKey(java.lang.String objectName, java.lang.String objectType, java.lang.String partName)Creates a unique key to identify a message of this kind, using the objectName, qualified name type and partName separated byQNAME_SEPARATORand appending the name of the current message kind.static DocumentationKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DocumentationKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LABEL
public static final DocumentationKind LABEL
-
PLURAL_LABEL
public static final DocumentationKind PLURAL_LABEL
-
DESCRIPTION
public static final DocumentationKind DESCRIPTION
-
-
Field Detail
-
QNAME_SEPARATOR
public static final java.lang.String QNAME_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static DocumentationKind[] 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 (DocumentationKind c : DocumentationKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DocumentationKind valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getKey
public java.lang.String getKey(java.lang.String objectName, java.lang.String objectType, java.lang.String partName)Creates a unique key to identify a message of this kind, using the objectName, qualified name type and partName separated byQNAME_SEPARATORand appending the name of the current message kind.
-
-