Enum N2oConfigMessage
- java.lang.Object
-
- java.lang.Enum<N2oConfigMessage>
-
- net.n2oapp.framework.config.register.audit.model.N2oConfigMessage
-
- All Implemented Interfaces:
Serializable,Comparable<N2oConfigMessage>
public enum N2oConfigMessage extends Enum<N2oConfigMessage>
Виды префиксов сообщения git по соглашениям аудита конфигураций
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetMessage(String fullMessage)static Optional<N2oConfigMessage>getPrefix(String fullMessage)static booleanhasPrefix(String message)StringtoString()static Stringtranslate(String message)static N2oConfigMessagevalueOf(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
-
-
Field Detail
-
value
public final String value
-
-
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(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 nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<N2oConfigMessage>
-
hasPrefix
public static boolean hasPrefix(String message)
-
getPrefix
public static Optional<N2oConfigMessage> getPrefix(String fullMessage)
-
-