Class 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.String getAbsoluteKeywordLocation()
      The absolute, dereferenced location of the validating keyword
      @Nullable java.lang.Object getAnnotation()  
      @Nullable java.util.Collection<OutputUnit> getAnnotations()
      errors or annotation produced by a successful validation
      @Nullable java.lang.String getError()  
      @Nullable java.util.Collection<OutputUnit> getErrors()
      errors or annotation produced by a failed validation
      java.lang.String getInstanceLocation()
      The location of the validated JSON value within the instance
      java.lang.String getKeywordLocation()
      relative location of the validating keyword
      boolean isValid()
      validation result
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OutputUnitFlag

        public OutputUnitFlag​(boolean valid)
    • Method Detail

      • isValid

        public boolean isValid()
        Description copied from interface: OutputUnit
        validation result
        Specified by:
        isValid in interface OutputUnit
      • getKeywordLocation

        public java.lang.String getKeywordLocation()
        Description copied from interface: OutputUnit
        relative location of the validating keyword
        Specified by:
        getKeywordLocation in interface OutputUnit
      • getInstanceLocation

        public java.lang.String getInstanceLocation()
        Description copied from interface: OutputUnit
        The location of the validated JSON value within the instance
        Specified by:
        getInstanceLocation in interface OutputUnit
      • getAbsoluteKeywordLocation

        public java.lang.String getAbsoluteKeywordLocation()
        Description copied from interface: OutputUnit
        The absolute, dereferenced location of the validating keyword
        Specified by:
        getAbsoluteKeywordLocation in interface OutputUnit
      • getError

        public @Nullable java.lang.String getError()
        Specified by:
        getError in interface OutputUnit
      • getAnnotation

        public @Nullable java.lang.Object getAnnotation()
        Specified by:
        getAnnotation in interface OutputUnit
      • getErrors

        public @Nullable java.util.Collection<OutputUnit> getErrors()
        Description copied from interface: OutputUnit
        errors or annotation produced by a failed validation
        Specified by:
        getErrors in interface OutputUnit
      • getAnnotations

        public @Nullable java.util.Collection<OutputUnit> getAnnotations()
        Description copied from interface: OutputUnit
        errors or annotation produced by a successful validation
        Specified by:
        getAnnotations in interface OutputUnit