Package org.apache.guacamole.properties
Class StringGuacamoleProperty
java.lang.Object
org.apache.guacamole.properties.StringGuacamoleProperty
- All Implemented Interfaces:
GuacamoleProperty<String>
A GuacamoleProperty whose value is a simple string.
-
Field Summary
Fields inherited from interface org.apache.guacamole.properties.GuacamoleProperty
DELIMITER_PATTERN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseValue
(String value) Parses the given string value into the type associated with this GuacamoleProperty.parseValueCollection
(String value) Parses the given string value into a Collection of values of the type associated with this GuacamoleProperty.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.guacamole.properties.GuacamoleProperty
getName
-
Constructor Details
-
StringGuacamoleProperty
public StringGuacamoleProperty()
-
-
Method Details
-
parseValue
Description copied from interface:GuacamoleProperty
Parses the given string value into the type associated with this GuacamoleProperty.- Specified by:
parseValue
in interfaceGuacamoleProperty<String>
- 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<String> 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 interfaceGuacamoleProperty<String>
- 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.
-