|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xenei.jena.entities.impl.handlers.LiteralHandler
public class LiteralHandler
An ObjectHandler that encodes objects as Literals and visa versa.
| Constructor Summary | |
|---|---|
LiteralHandler(com.hp.hpl.jena.datatypes.RDFDatatype literalDatatype)
Create a LiteralHandler that converts literalDatatype objects. |
|
| Method Summary | |
|---|---|
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()
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LiteralHandler(com.hp.hpl.jena.datatypes.RDFDatatype literalDatatype)
literalDatatype - The RDFDatatype that will be converted to/from.| Method Detail |
|---|
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 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.public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||