net.sourceforge.guacamole.properties
Interface GuacamoleProperty<Type>

Type Parameters:
Type - The type this GuacamoleProperty will parse into.
All Known Implementing Classes:
FileGuacamoleProperty, IntegerGuacamoleProperty, StringGuacamoleProperty

public interface GuacamoleProperty<Type>

An abstract representation of a property in the guacamole.properties file, which parses into a specific type.

Author:
Michael Jumper

Method Summary
 String getName()
          Returns the name of the property in guacamole.properties that this GuacamoleProperty will parse.
 Type parseValue(String value)
          Parses the given string value into the type associated with this GuacamoleProperty.
 

Method Detail

getName

String getName()
Returns the name of the property in guacamole.properties that this GuacamoleProperty will parse.

Returns:
The name of the property in guacamole.properties that this GuacamoleProperty will parse.

parseValue

Type parseValue(String value)
                throws GuacamoleException
Parses the given string value into the type associated with this GuacamoleProperty.

Parameters:
value - The string value to parse.
Returns:
The parsed value.
Throws:
GuacamoleException - If an error occurs while parsing the provided value.


Copyright © 2012. All Rights Reserved.