Enum N2oConfigMessage
- java.lang.Object
-
- java.lang.Enum<N2oConfigMessage>
-
- net.n2oapp.framework.config.register.audit.model.N2oConfigMessage
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<N2oConfigMessage>
public enum N2oConfigMessage extends java.lang.Enum<N2oConfigMessage>
Виды префиксов сообщения git по соглашениям аудита конфигураций
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringvalue
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetMessage(java.lang.String fullMessage)static java.util.Optional<N2oConfigMessage>getPrefix(java.lang.String fullMessage)static booleanhasPrefix(java.lang.String message)java.lang.StringtoString()static java.lang.Stringtranslate(java.lang.String message)static N2oConfigMessagevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static N2oConfigMessage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT_COMMIT_PREFIX
public static final N2oConfigMessage INIT_COMMIT_PREFIX
-
SERVER_PREFIX
public static final N2oConfigMessage SERVER_PREFIX
-
CREATED_PREFIX
public static final N2oConfigMessage CREATED_PREFIX
-
UPDATED_PREFIX
public static final N2oConfigMessage UPDATED_PREFIX
-
DELETED_PREFIX
public static final N2oConfigMessage DELETED_PREFIX
-
DUPLICATE_DELETED_PREFIX
public static final N2oConfigMessage DUPLICATE_DELETED_PREFIX
-
RESOLVED_PREFIX
public static final N2oConfigMessage RESOLVED_PREFIX
-
RESOLVED_AUTO_PREFIX
public static final N2oConfigMessage RESOLVED_AUTO_PREFIX
-
RESOLVED_TO_SYSTEM_PREFIX
public static final N2oConfigMessage RESOLVED_TO_SYSTEM_PREFIX
-
MERGE_PREFIX
public static final N2oConfigMessage MERGE_PREFIX
-
CONFLICT_MERGE_PREFIX
public static final N2oConfigMessage CONFLICT_MERGE_PREFIX
-
MERGE_BRANCH_INFO
public static final N2oConfigMessage MERGE_BRANCH_INFO
-
TEMPLATE_PREFIX
public static final N2oConfigMessage TEMPLATE_PREFIX
-
MANUAL_COMMIT
public static final N2oConfigMessage MANUAL_COMMIT
-
SYSTEM_UPDATE_PREFIX
public static final N2oConfigMessage SYSTEM_UPDATE_PREFIX
-
-
Method Detail
-
values
public static N2oConfigMessage[] 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 (N2oConfigMessage c : N2oConfigMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static N2oConfigMessage 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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<N2oConfigMessage>
-
translate
public static java.lang.String translate(java.lang.String message)
-
hasPrefix
public static boolean hasPrefix(java.lang.String message)
-
getPrefix
public static java.util.Optional<N2oConfigMessage> getPrefix(java.lang.String fullMessage)
-
getMessage
public static java.lang.String getMessage(java.lang.String fullMessage)
-
-