com.opencms.template.cache
Class CmsElementLink

java.lang.Object
  |
  +--com.opencms.template.cache.CmsElementLink

public class CmsElementLink
extends Object

An instance of CmsElementLink is a link to another element. The link contains only the name of the linked element. Which element is linked will be determinded during the runtime of the content-creation (getContent-method).

Author:
Andreas Schouten

Constructor Summary
CmsElementLink(String nameToLinkTo)
          Creates a new Element-Link to find out where to link to.
 
Method Summary
 String getElementName()
          Returns the name of the element to link to.
 String toString()
          Returns the name of the element to link to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsElementLink

public CmsElementLink(String nameToLinkTo)
Creates a new Element-Link to find out where to link to.

Parameters:
nameToLinkTo - - the name of the element to link to.
Method Detail

toString

public String toString()
Returns the name of the element to link to.

Overrides:
toString in class Object
Returns:
the name of the element to link to.

getElementName

public String getElementName()
Returns the name of the element to link to.

Returns:
the name of the element to link to.