org.xwiki.gwt.wysiwyg.client.wiki
Class EntityLink<T>

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.wiki.EntityLink<T>
Type Parameters:
T - the type of data associated with the link

public class EntityLink<T>
extends java.lang.Object

Defines a link from an entity to a resource.

Version:
$Id: EntityLink.java 31743 2010-10-13 01:20:32Z mflorea $

Constructor Summary
EntityLink()
          Default constructor.
EntityLink(EntityReference origin, ResourceReference destination, T data)
          Explicit constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityLink

public EntityLink()
Default constructor.


EntityLink

public EntityLink(EntityReference origin,
                  ResourceReference destination,
                  T data)
Explicit constructor.

Parameters:
origin - the link origin
destination - the link destination
data - the link data
Method Detail

getOrigin

public EntityReference getOrigin()
Returns:
the link origin

setOrigin

public void setOrigin(EntityReference origin)
Sets the link origin.

Parameters:
origin - the new link origin

getDestination

public ResourceReference getDestination()
Returns:
the link destination

setDestination

public void setDestination(ResourceReference destination)
Sets the link destination.

Parameters:
destination - the new link destination

getData

public T getData()
Returns:
the link data

setData

public void setData(T data)
Sets the link data.

Parameters:
data - the new link data


Copyright © 2004-2011 XWiki. All Rights Reserved.