Enum Support for LiteralFactory
-------------------------------
Key: CLEREZZA-567
URL: https://issues.apache.org/jira/browse/CLEREZZA-567
Project: Clerezza
Issue Type: Improvement
Reporter: franco fallica
Priority: Minor
Supposed you have the following enum:
public static enum SOURCE { WEB , SMS }
and make:
GraphNode node = new GraphNode ( resource, graph);
node.addPropertyValue( SMSPAYMENT.source, SOURCE.WEB);
you'll get a org.apache.clerezza.rdf.core.NoConvertorException.
if you'd use:
node.addPropertyValue( SMSPAYMENT.source, SOURCE.WEB.toString());
it would work.
IMO LiteralFactory should support ENUMs, but don't know if this is possible.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira