org.eclipse.lyo.oslc4j.core.model
Class Link

java.lang.Object
  extended by org.eclipse.lyo.oslc4j.core.model.AbstractReifiedResource<URI>
      extended by org.eclipse.lyo.oslc4j.core.model.Link
All Implemented Interfaces:
IReifiedResource<URI>

public class Link
extends AbstractReifiedResource<URI>

Special OSLC link type. Differs from URI since it can hold a label, expressed in RDF using reification.

See Also:
OSLC Core Specification 2.0, Appendix C: Guidance on Links & Relationships

Constructor Summary
Link()
           
Link(URI resource)
           
Link(URI resource, String label)
           
 
Method Summary
 String getLabel()
           
 void setLabel(String label)
          Sets the link label.
 
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractReifiedResource
getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Link

public Link()

Link

public Link(URI resource)

Link

public Link(URI resource,
            String label)
Method Detail

getLabel

public String getLabel()

setLabel

public void setLabel(String label)
Sets the link label.

Parameters:
label - the label


Copyright © 2013. All rights reserved.