org.eclipse.lyo.oslc4j.core.model
Interface IReifiedResource<T>

All Known Implementing Classes:
AbstractReifiedResource, Link

public interface IReifiedResource<T>

This interface helps model RDF reified statements in plain old Java objects. OSLC commonly uses reification to describe metadata on links, such as labels. The getValue() and setValue(Object) methods allow you to set the actual object of the triple. All other properties in implementing classes are statements about the statement. These additional properties should have OslcName and OslcPropertyDefinition annotations. See Link for an example.

Note: The parameterized type T must be an URI to serialize to JSON due to current limitations in the OSLC JSON format.

See Also:
AbstractReifiedResource, RDF Semantics: Reification, RDF Primer: Reification

Method Summary
 T getValue()
          Gets the object of the reified statement.
 void setValue(T value)
          Sets the object of the reified statement.
 

Method Detail

getValue

T getValue()
Gets the object of the reified statement.

Returns:
the object of the reified statement

setValue

void setValue(T value)
Sets the object of the reified statement.

Parameters:
value - the object of the reified statement


Copyright © 2012. All Rights Reserved.