org.eclipse.lyo.oslc4j.core.model

## Class Link

- java.lang.Object
- - org.eclipse.lyo.oslc4j.core.model.AbstractReifiedResource<URI>
  - - 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

    Constructors
    Constructor and Description
    `Link()`
    `Link(URI resource)`
    `Link(URI resource, String label)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

          @OslcName(value="title")
          @OslcPropertyDefinition(value="http://purl.org/dc/terms/title")
          public String getLabel()

    - #### setLabel

          public void setLabel(String label)

      Sets the link label.
      Parameters:
        `label` - the label

Copyright © 2016. All rights reserved.