Class TraitValidatorsTrait.Validator

  • All Implemented Interfaces:
    ToNode
    Enclosing class:
    TraitValidatorsTrait

    public static final class TraitValidatorsTrait.Validator
    extends java.lang.Object
    implements ToNode
    • Constructor Detail

      • Validator

        public Validator​(Selector selector,
                         java.lang.String message)
      • Validator

        public Validator​(Selector selector,
                         java.lang.String message,
                         Severity severity)
    • Method Detail

      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • getSelector

        public Selector getSelector()
      • getMessage

        public java.util.Optional<java.lang.String> getMessage()
      • getSeverity

        public Severity getSeverity()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object