Class OutputUnitFlag
- java.lang.Object
-
- io.openapiprocessor.jsonschema.ouput.OutputUnitFlag
-
- All Implemented Interfaces:
OutputUnit
public class OutputUnitFlag extends java.lang.Object implements OutputUnit
-
-
Constructor Summary
Constructors Constructor Description OutputUnitFlag(boolean valid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAbsoluteKeywordLocation()The absolute, dereferenced location of the validating keyword@Nullable java.lang.ObjectgetAnnotation()@Nullable java.util.Collection<OutputUnit>getAnnotations()errors or annotation produced by a successful validation@Nullable java.lang.StringgetError()@Nullable java.util.Collection<OutputUnit>getErrors()errors or annotation produced by a failed validationjava.lang.StringgetInstanceLocation()The location of the validated JSON value within the instancejava.lang.StringgetKeywordLocation()relative location of the validating keywordbooleanisValid()validation result
-
-
-
Method Detail
-
isValid
public boolean isValid()
Description copied from interface:OutputUnitvalidation result- Specified by:
isValidin interfaceOutputUnit
-
getKeywordLocation
public java.lang.String getKeywordLocation()
Description copied from interface:OutputUnitrelative location of the validating keyword- Specified by:
getKeywordLocationin interfaceOutputUnit
-
getInstanceLocation
public java.lang.String getInstanceLocation()
Description copied from interface:OutputUnitThe location of the validated JSON value within the instance- Specified by:
getInstanceLocationin interfaceOutputUnit
-
getAbsoluteKeywordLocation
public java.lang.String getAbsoluteKeywordLocation()
Description copied from interface:OutputUnitThe absolute, dereferenced location of the validating keyword- Specified by:
getAbsoluteKeywordLocationin interfaceOutputUnit
-
getError
public @Nullable java.lang.String getError()
- Specified by:
getErrorin interfaceOutputUnit
-
getAnnotation
public @Nullable java.lang.Object getAnnotation()
- Specified by:
getAnnotationin interfaceOutputUnit
-
getErrors
public @Nullable java.util.Collection<OutputUnit> getErrors()
Description copied from interface:OutputUniterrors or annotation produced by a failed validation- Specified by:
getErrorsin interfaceOutputUnit
-
getAnnotations
public @Nullable java.util.Collection<OutputUnit> getAnnotations()
Description copied from interface:OutputUniterrors or annotation produced by a successful validation- Specified by:
getAnnotationsin interfaceOutputUnit
-
-