Package com.networknt.schema
Class ValidationMessage
- java.lang.Object
-
- com.networknt.schema.ValidationMessage
-
public class ValidationMessage extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValidationMessage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String[]
getArguments()
String
getCode()
Map<String,Object>
getDetails()
String
getMessage()
String
getPath()
String
getSchemaPath()
String
getType()
int
hashCode()
static ValidationMessage
of(String type, ErrorMessageType errorMessageType, MessageFormat messageFormat, String at, String schemaPath, String... arguments)
static ValidationMessage
of(String type, ErrorMessageType errorMessageType, MessageFormat messageFormat, String at, String schemaPath, Map<String,Object> details)
static ValidationMessage
ofWithCustom(String type, ErrorMessageType errorMessageType, MessageFormat messageFormat, String customMessage, String at, String schemaPath, String... arguments)
void
setSchemaPath(String schemaPath)
void
setType(String type)
String
toString()
-
-
-
Method Detail
-
getCode
public String getCode()
-
getPath
public String getPath()
- Returns:
- The path to the input json
-
getSchemaPath
public String getSchemaPath()
- Returns:
- The path to the schema
-
setSchemaPath
public void setSchemaPath(String schemaPath)
-
getArguments
public String[] getArguments()
-
getMessage
public String getMessage()
-
getType
public String getType()
-
setType
public void setType(String type)
-
ofWithCustom
public static ValidationMessage ofWithCustom(String type, ErrorMessageType errorMessageType, MessageFormat messageFormat, String customMessage, String at, String schemaPath, String... arguments)
-
of
public static ValidationMessage of(String type, ErrorMessageType errorMessageType, MessageFormat messageFormat, String at, String schemaPath, String... arguments)
-
of
public static ValidationMessage of(String type, ErrorMessageType errorMessageType, MessageFormat messageFormat, String at, String schemaPath, Map<String,Object> details)
-
-