|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface that defines the service of serialising and deserialising a Java object representing a datatype to its XML Schema representation.
| Method Summary | |
java.lang.Object |
deserialize(RDFNode node)
Given an RDF node (resource or literal), return the Java value that the node value encodes. |
RDFNode |
serialize(java.lang.Object value,
DAMLModel model)
Given a value and a model, answer an rdf node that encapsulates the value. |
| Method Detail |
public java.lang.Object deserialize(RDFNode node)
xsd:integer
return the corresponding integer. Note that due to Java's limitations of there
being no general return type that includes the scalars, scalar values will be returned
as the corresponding object type (e.g. Integer instead of int).
node - The RDF node that represents the encoded value
public RDFNode serialize(java.lang.Object value,
DAMLModel model)
value - The Java value to be serialisedmodel - The RDF model to which the value will be serialised
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||