org.gcube.data.trees.io
Interface TreeBinder<T>

Type Parameters:
T - the data type

public interface TreeBinder<T>

A two-way binding between instances of a given data type and Trees of a given form.

Author:
Fabio Simeoni

Method Summary
 Tree bind(T data)
          Binds an instance of the data to a tree.
 T bind(Tree tree)
          Binds a tree to an instance of the data.
 BinderInfo info()
          Returns descriptive information about the binder
 

Method Detail

info

BinderInfo info()
Returns descriptive information about the binder

Returns:
the info

bind

Tree bind(T data)
          throws Exception
Binds an instance of the data to a tree.

Parameters:
data - the data
Returns:
the tree
Throws:
Exception

bind

T bind(Tree tree)
       throws Exception
Binds a tree to an instance of the data.

Parameters:
tree - the tree
Returns:
the data
Throws:
Exception


Copyright © 2012. All Rights Reserved.