nz.ac.waikato.mcennis.rat.graph.property
Interface PropertyValueFactory<Type>

All Known Implementing Classes:
AssociativeMiningItemsFactory, DoubleFactory, FileFactory, HashMapStringDoubleFactory, InstanceFactory, InstancesFactory, IntegerFactory, LongFactory, StringFactory, URLFactory

public interface PropertyValueFactory<Type>

A factory interface for importing and exporting a given java data type from Strings. Must use only non-XML characters.


Method Summary
 java.lang.String exportToString(Type type, Graph g)
          Create a string representing the contents of this object.
 Type importFromString(java.lang.String data, Graph g)
          Create an instance of this type from a string.
 

Method Detail

importFromString

Type importFromString(java.lang.String data,
                      Graph g)
Create an instance of this type from a string.

Parameters:
data - string containing the data used to create the object
g - graph context of the string
Returns:
newly constructed object

exportToString

java.lang.String exportToString(Type type,
                                Graph g)
Create a string representing the contents of this object.

Parameters:
type - object to be serialized
g - graph context of the object
Returns:
string representing the content of the object