Package io.vertx.json.schema
Class OutputUnit
- java.lang.Object
-
- io.vertx.json.schema.OutputUnit
-
public class OutputUnit extends Object
-
-
Constructor Summary
Constructors Constructor Description OutputUnit()
OutputUnit(boolean valid)
OutputUnit(JsonObject json)
OutputUnit(String instanceLocation, String absoluteKeywordLocation, String keywordLocation, String error, OutputErrorType errorType)
-
Method Summary
-
-
-
Constructor Detail
-
OutputUnit
public OutputUnit()
-
OutputUnit
public OutputUnit(JsonObject json)
-
OutputUnit
public OutputUnit(boolean valid)
-
OutputUnit
public OutputUnit(String instanceLocation, String absoluteKeywordLocation, String keywordLocation, String error, OutputErrorType errorType)
-
-
Method Detail
-
getValid
public Boolean getValid()
-
setValid
public OutputUnit setValid(Boolean valid)
-
getAbsoluteKeywordLocation
public String getAbsoluteKeywordLocation()
-
setAbsoluteKeywordLocation
public OutputUnit setAbsoluteKeywordLocation(String absoluteKeywordLocation)
-
getKeywordLocation
public String getKeywordLocation()
-
setKeywordLocation
public OutputUnit setKeywordLocation(String keywordLocation)
-
getInstanceLocation
public String getInstanceLocation()
-
setInstanceLocation
public OutputUnit setInstanceLocation(String instanceLocation)
-
getError
public String getError()
-
setError
public OutputUnit setError(String error)
-
getErrors
public List<OutputUnit> getErrors()
-
setErrors
public OutputUnit setErrors(List<OutputUnit> errors)
-
addError
public OutputUnit addError(OutputUnit error)
-
addErrors
public OutputUnit addErrors(List<OutputUnit> errors)
-
getAnnotations
public List<OutputUnit> getAnnotations()
-
setAnnotations
public OutputUnit setAnnotations(List<OutputUnit> annotations)
-
getErrorType
public OutputErrorType getErrorType()
-
setErrorType
public OutputUnit setErrorType(OutputErrorType errorType)
-
addAnnotation
public OutputUnit addAnnotation(OutputUnit annotation)
-
addAnnotations
public OutputUnit addAnnotations(List<OutputUnit> annotations)
-
checkValidity
public void checkValidity() throws JsonSchemaValidationException
- Throws:
JsonSchemaValidationException
-
toException
public ValidationException toException(Object input)
-
toJson
public JsonObject toJson()
-
-