T - the type of data associated with the linkpublic class EntityLink<T> extends Object
| Constructor and Description |
|---|
EntityLink()
Default constructor.
|
EntityLink(EntityReference origin,
ResourceReference destination,
T data)
Explicit constructor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getData() |
ResourceReference |
getDestination() |
EntityReference |
getOrigin() |
void |
setData(T data)
Sets the link data.
|
void |
setDestination(ResourceReference destination)
Sets the link destination.
|
void |
setOrigin(EntityReference origin)
Sets the link origin.
|
public EntityLink()
public EntityLink(EntityReference origin, ResourceReference destination, T data)
origin - the link origindestination - the link destinationdata - the link datapublic EntityReference getOrigin()
public void setOrigin(EntityReference origin)
origin - the new link originpublic ResourceReference getDestination()
public void setDestination(ResourceReference destination)
destination - the new link destinationpublic T getData()
public void setData(T data)
data - the new link dataCopyright © 2004–2014 XWiki. All rights reserved.