public interface

OLink

implements Titled
org.odata4j.core.OLink
Known Indirect Subclasses

Class Overview

An OLink represents a reference to one or more OData entities.

Relationships to a single entity are represented as ORelatedEntityLink. Relationships to multiple entities are represented as ORelatedEntitiesLink.

The OLinks static factory class can be used to create OLink instances.

See Also

Summary

Public Methods
abstract String getHref()
Gets the link href.
abstract List<OEntity> getRelatedEntities()
Gets the inlined referents.
abstract OEntity getRelatedEntity()
Gets the inlined referent.
abstract String getRelation()
Gets the link relation.
abstract String getTitle()
Gets the link title.
abstract boolean isCollection()
Returns true if this OLink represents a collection of related entities, false if it is a single entity link.
abstract boolean isInline()
Returns true if this OLink represents inlined content, false otherwise.
[Expand]
Inherited Methods
From interface org.odata4j.core.Titled

Public Methods

public abstract String getHref ()

Gets the link href.

Returns
  • the link href

public abstract List<OEntity> getRelatedEntities ()

Gets the inlined referents.

public abstract OEntity getRelatedEntity ()

Gets the inlined referent.

public abstract String getRelation ()

Gets the link relation.

Returns
  • the link relation

public abstract String getTitle ()

Gets the link title.

Returns
  • the link title

public abstract boolean isCollection ()

Returns true if this OLink represents a collection of related entities, false if it is a single entity link.

public abstract boolean isInline ()

Returns true if this OLink represents inlined content, false otherwise.