Class DefaultInvalidInputErrorFormatter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(InvalidInputError error)
      Create a string representation for the given object.
      java.lang.String getExpectedString​(InvalidInputError error)  
      java.lang.String[] getLabels​(Matcher matcher)
      Gets the labels corresponding to the given matcher, AnyOfMatchers are treated specially in that their label is constructed as a list of their contents
      java.lang.String join​(java.util.List<java.lang.String> labelList)  
      • Methods inherited from class java.lang.Object

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

      • DefaultInvalidInputErrorFormatter

        public DefaultInvalidInputErrorFormatter()
    • Method Detail

      • format

        public java.lang.String format​(InvalidInputError error)
        Description copied from interface: Formatter
        Create a string representation for the given object.
        Specified by:
        format in interface Formatter<InvalidInputError>
        Parameters:
        error - the object to format
        Returns:
        a string describing the object
      • getExpectedString

        public java.lang.String getExpectedString​(InvalidInputError error)
      • getLabels

        public java.lang.String[] getLabels​(Matcher matcher)
        Gets the labels corresponding to the given matcher, AnyOfMatchers are treated specially in that their label is constructed as a list of their contents
        Parameters:
        matcher - the matcher
        Returns:
        the labels
      • join

        public java.lang.String join​(java.util.List<java.lang.String> labelList)