me.grison.jtoml
Interface Getter

All Known Implementing Classes:
Toml

public interface Getter

Toml getter interface.

Author:
$Author: Alexandre Grison$

Method Summary
 Object get(String key)
          Get the object.
<T> T
getAs(String key, Class<T> clazz)
          Get an object of a specific class.
 Boolean getBoolean(String key)
          Get a boolean.
 Calendar getDate(String key)
          Get the date (as Calendar)
 Double getDouble(String key)
          Get the double value.
 List<Object> getList(String key)
          Get the list.
 Long getLong(String key)
          Get the Long value.
 Map<String,Object> getMap(String key)
          Get a Map.
 String getString(String key)
          Get the string.
 

Method Detail

get

Object get(String key)
Get the object.

Parameters:
key - the key where the object is located
Returns:
the object located at the given key.

getString

String getString(String key)
Get the string.

Parameters:
key - the key where the object is located
Returns:
the string located at the given key.

getLong

Long getLong(String key)
Get the Long value.

Parameters:
key - the key where the object is located
Returns:
the long located at the given key.

getDouble

Double getDouble(String key)
Get the double value.

Parameters:
key - the key where the object is located
Returns:
the float located at the given key.

getDate

Calendar getDate(String key)
Get the date (as Calendar)

Parameters:
key - the key where the object is located
Returns:
the date located at the given key.

getList

List<Object> getList(String key)
Get the list.

Parameters:
key - the key where the object is located
Returns:
the list located at the given key.

getBoolean

Boolean getBoolean(String key)
Get a boolean.

Parameters:
key - the key where the object is located
Returns:
the boolean located at the given key.

getMap

Map<String,Object> getMap(String key)
Get a Map.

Parameters:
key - the key where the object is located
Returns:
the map located at the given key.

getAs

<T> T getAs(String key,
            Class<T> clazz)
Get an object of a specific class.

Type Parameters:
T - the type
Parameters:
key - the key where the object is located
clazz - the class of the object
Returns:
the object located at the given key.


Copyright © 2013. All Rights Reserved.