public class LiteralHandler extends Object implements ObjectHandler
| Constructor and Description |
|---|
LiteralHandler(com.hp.hpl.jena.datatypes.RDFDatatype literalDatatype)
Create a LiteralHandler that converts literalDatatype objects.
|
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.rdf.model.Literal |
createRDFNode(Object obj)
Convert the object to a Literal using the literalDatatype.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty(Object obj)
Returns true if the object is considered empty.
|
Object |
parseObject(com.hp.hpl.jena.rdf.model.RDFNode node)
Convert a Literal to an object using the Literaldata type to parse it.
|
String |
toString() |
public LiteralHandler(com.hp.hpl.jena.datatypes.RDFDatatype literalDatatype)
literalDatatype - The RDFDatatype that will be converted to/from.public com.hp.hpl.jena.rdf.model.Literal createRDFNode(Object obj)
createRDFNode in interface ObjectHandlerobj - the Object to convert.An - exception of object can not be parsed to a lexical form.public boolean isEmpty(Object obj)
ObjectHandlerisEmpty in interface ObjectHandlerobj - the object that would be passed to createRDFNodepublic Object parseObject(com.hp.hpl.jena.rdf.model.RDFNode node)
parseObject in interface ObjectHandlernode - The literal node.An - exception if node is not a Liter that can be parsed by
literalDatatype.Copyright © 2012-2013 XENEI.com. All Rights Reserved.