Class OutputUnitNode
- java.lang.Object
-
- io.openapiprocessor.jsonschema.ouput.OutputUnitNode
-
- All Implemented Interfaces:
OutputUnit,OutputUnitWrite
public class OutputUnitNode extends java.lang.Object implements OutputUnit, OutputUnitWrite
-
-
Constructor Summary
Constructors Constructor Description OutputUnitNode()
-
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 resultvoidsetAbsoluteKeywordLocation(java.lang.String location)The absolute, dereferenced location of the validating keywordvoidsetAnnotation(@Nullable java.lang.Object annotation)voidsetAnnotations(@Nullable java.util.Collection<OutputUnit> annotations)errors or annotation produced by a successful validationvoidsetError(@Nullable java.lang.String error)voidsetErrors(@Nullable java.util.Collection<OutputUnit> errors)errors or annotation produced by a failed validationvoidsetInstanceLocation(java.lang.String location)The location of the validated JSON value within the instancevoidsetKeywordLocation(java.lang.String location)relative location of the validating keywordvoidsetValid(boolean valid)set 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
-
setValid
public void setValid(boolean valid)
Description copied from interface:OutputUnitWriteset validation result- Specified by:
setValidin interfaceOutputUnitWrite
-
setKeywordLocation
public void setKeywordLocation(java.lang.String location)
Description copied from interface:OutputUnitWriterelative location of the validating keyword- Specified by:
setKeywordLocationin interfaceOutputUnitWrite
-
setInstanceLocation
public void setInstanceLocation(java.lang.String location)
Description copied from interface:OutputUnitWriteThe location of the validated JSON value within the instance- Specified by:
setInstanceLocationin interfaceOutputUnitWrite
-
setAbsoluteKeywordLocation
public void setAbsoluteKeywordLocation(java.lang.String location)
Description copied from interface:OutputUnitWriteThe absolute, dereferenced location of the validating keyword- Specified by:
setAbsoluteKeywordLocationin interfaceOutputUnitWrite
-
setError
public void setError(@Nullable java.lang.String error)
- Specified by:
setErrorin interfaceOutputUnitWrite
-
setAnnotation
public void setAnnotation(@Nullable java.lang.Object annotation)
- Specified by:
setAnnotationin interfaceOutputUnitWrite
-
setErrors
public void setErrors(@Nullable java.util.Collection<OutputUnit> errors)
Description copied from interface:OutputUnitWriteerrors or annotation produced by a failed validation- Specified by:
setErrorsin interfaceOutputUnitWrite
-
setAnnotations
public void setAnnotations(@Nullable java.util.Collection<OutputUnit> annotations)
Description copied from interface:OutputUnitWriteerrors or annotation produced by a successful validation- Specified by:
setAnnotationsin interfaceOutputUnitWrite
-
-