Package com.networknt.schema.format
Class AbstractFormat
- java.lang.Object
-
- com.networknt.schema.format.BaseFormat
-
- com.networknt.schema.format.AbstractFormat
-
- All Implemented Interfaces:
Format
@Deprecated public abstract class AbstractFormat extends BaseFormat
Deprecated.Used for Formats that do not need to use theExecutionContext
.
-
-
Constructor Summary
Constructors Constructor Description AbstractFormat(String name, String errorMessageDescription)
Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
matches(ExecutionContext executionContext, String value)
Deprecated.Determines if the value matches the format.abstract boolean
matches(String value)
Deprecated.-
Methods inherited from class com.networknt.schema.format.BaseFormat
getErrorMessageDescription, getName
-
-
-
-
Method Detail
-
matches
public boolean matches(ExecutionContext executionContext, String value)
Deprecated.Description copied from interface:Format
Determines if the value matches the format.This should be implemented for string node types.
- Parameters:
executionContext
- the execution contextvalue
- to match- Returns:
- true if matches
-
matches
public abstract boolean matches(String value)
Deprecated.
-
-