org.jrdf.graph.datatype
Interface ValueCreator

All Known Subinterfaces:
DatatypeValue, XSDDecimal
All Known Implementing Classes:
AnyURIValue, BooleanValue, ByteValue, CalendarValue, DateTimeValue, DecimalValue, DoubleValue, DurationValue, FloatValue, GMonthCalendarValue, IntegerValue, IntValue, LongValue, NonNegativeIntegerValue, NonPositiveIntegerValue, QNameValue, ShortValue, StringValue

public interface ValueCreator

Creates value object based on a value type or lexical form (to be parsed and turned into a the appropriate value).


Method Summary
 DatatypeValue create(Object object)
          Create a value based on an Java value.
 DatatypeValue create(String lexicalForm)
           
 

Method Detail

create

DatatypeValue create(Object object)
Create a value based on an Java value. Will fail if there is no mapping registered.

Parameters:
object - the Java object to convert to a value.
Returns:
a Value object, usually just wrapping the Java object.

create

DatatypeValue create(String lexicalForm)