Class IntegerGuacamoleProperty

java.lang.Object
org.apache.guacamole.properties.IntegerGuacamoleProperty
All Implemented Interfaces:
GuacamoleProperty<Integer>

public abstract class IntegerGuacamoleProperty extends Object implements GuacamoleProperty<Integer>
A GuacamoleProperty whose value is an integer.
  • Constructor Details

    • IntegerGuacamoleProperty

      public IntegerGuacamoleProperty()
  • Method Details

    • parseValue

      public Integer parseValue(String value) throws org.apache.guacamole.GuacamoleException
      Description copied from interface: GuacamoleProperty
      Parses the given string value into the type associated with this GuacamoleProperty.
      Specified by:
      parseValue in interface GuacamoleProperty<Integer>
      Parameters:
      value - The string value to parse.
      Returns:
      The parsed value.
      Throws:
      org.apache.guacamole.GuacamoleException - If an error occurs while parsing the provided value.
    • parseValueCollection

      public List<Integer> parseValueCollection(String value) throws org.apache.guacamole.GuacamoleException
      Description copied from interface: GuacamoleProperty
      Parses the given string value into a Collection of values of the type associated with this GuacamoleProperty. The default implementation simply returns a list containing a single item as parsed by the parseValue method.
      Specified by:
      parseValueCollection in interface GuacamoleProperty<Integer>
      Parameters:
      value - The string value to parse.
      Returns:
      A sorted Collection of the parsed values.
      Throws:
      org.apache.guacamole.GuacamoleException - If an error occurs while parsing the provided value.