Package com.networknt.oas.validator
Enum BaseValidationMessages
- java.lang.Object
-
- java.lang.Enum<BaseValidationMessages>
-
- com.networknt.oas.validator.BaseValidationMessages
-
- All Implemented Interfaces:
Messages,Serializable,Comparable<BaseValidationMessages>
public enum BaseValidationMessages extends Enum<BaseValidationMessages> implements Messages
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BadEmailBadPatternBadRefBadUrlDuplicateValueEmptyListMissingFieldNoRelUrlNumberConstraintPatternMatchFailWrongTypeFormatWrongTypeJsonWrongTypeValue
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFormatString()static BaseValidationMessagesvalueOf(String name)Returns the enum constant of this type with the specified name.static BaseValidationMessages[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.networknt.oas.validator.msg.Messages
getFormatString, getFormatStrings, msg, msg, msgNoLocale, name
-
-
-
-
Enum Constant Detail
-
WrongTypeJson
public static final BaseValidationMessages WrongTypeJson
-
BadRef
public static final BaseValidationMessages BadRef
-
PatternMatchFail
public static final BaseValidationMessages PatternMatchFail
-
BadPattern
public static final BaseValidationMessages BadPattern
-
BadUrl
public static final BaseValidationMessages BadUrl
-
BadEmail
public static final BaseValidationMessages BadEmail
-
NumberConstraint
public static final BaseValidationMessages NumberConstraint
-
EmptyList
public static final BaseValidationMessages EmptyList
-
DuplicateValue
public static final BaseValidationMessages DuplicateValue
-
MissingField
public static final BaseValidationMessages MissingField
-
WrongTypeFormat
public static final BaseValidationMessages WrongTypeFormat
-
WrongTypeValue
public static final BaseValidationMessages WrongTypeValue
-
NoRelUrl
public static final BaseValidationMessages NoRelUrl
-
-
Method Detail
-
values
public static BaseValidationMessages[] 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 (BaseValidationMessages c : BaseValidationMessages.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseValidationMessages 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
-
getFormatString
public String getFormatString()
- Specified by:
getFormatStringin interfaceMessages
-
-