Enum PropertyVisitorError

java.lang.Object
java.lang.Enum<PropertyVisitorError>
io.deephaven.properties.PropertyVisitorError
All Implemented Interfaces:
PropertyVisitor, Serializable, Comparable<PropertyVisitorError>, java.lang.constant.Constable

public enum PropertyVisitorError
extends Enum<PropertyVisitorError>
implements PropertyVisitor
A PropertyVisitor whose methods all throw IllegalStateException with the relevant key and value context. Meant to be a utility class that other PropertyVisitors can use, for example in the case of parsing an unknown key.
  • Enum Constant Details

  • Method Details

    • values

      public static PropertyVisitorError[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PropertyVisitorError valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • visit

      public void visit​(String key, String value)
      Description copied from interface: PropertyVisitor
      Performs this operation on the given key and String value.
      Specified by:
      visit in interface PropertyVisitor
      Parameters:
      key - the key
      value - the value
    • visit

      public void visit​(String key, int value)
      Description copied from interface: PropertyVisitor
      Performs this operation on the given key and int value.
      Specified by:
      visit in interface PropertyVisitor
      Parameters:
      key - the key
      value - the value
    • visit

      public void visit​(String key, long value)
      Description copied from interface: PropertyVisitor
      Performs this operation on the given key and long value.
      Specified by:
      visit in interface PropertyVisitor
      Parameters:
      key - the key
      value - the value
    • visit

      public void visit​(String key, boolean value)
      Description copied from interface: PropertyVisitor
      Performs this operation on the given key and boolean value.
      Specified by:
      visit in interface PropertyVisitor
      Parameters:
      key - the key
      value - the value