jcolibri.connector
Interface TypeAdaptor

All Known Implementing Classes:
IEText, IETextGate, IETextOpenNLP, Instance, MyStringType, Text

public interface TypeAdaptor

Interface that must implement the classes which want to be used in the connectors. By default, connectors manage basic java types: integers, booleans, ... If developers want to use complex types, they must obey this interface.

IMPORTANT: You must define the equals() method to avoid problems with the data base connector. If you continue having problems try returning always "true".

Version:
1.0
Author:
Juan Antonio Recio García

Method Summary
 boolean equals(java.lang.Object o)
          You must define this method to avoid problems with the data base connector (Hibernate)
 void fromString(java.lang.String content)
          Reads the type from a string.
 java.lang.String toString()
          Returns a string representation of the type.
 

Method Detail

toString

java.lang.String toString()
Returns a string representation of the type.

Overrides:
toString in class java.lang.Object

fromString

void fromString(java.lang.String content)
                throws java.lang.Exception
Reads the type from a string.

Parameters:
content -
Throws:
java.lang.Exception

equals

boolean equals(java.lang.Object o)
You must define this method to avoid problems with the data base connector (Hibernate)

Overrides:
equals in class java.lang.Object

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es