com.opencms.linkmanagement
Class CmsPageLinks

java.lang.Object
  |
  +--com.opencms.linkmanagement.CmsPageLinks

public class CmsPageLinks
extends Object

Contains all link destinations (anchors) of a OpenCms page.

Version:
1.0
Author:
Hanjo Riege

Constructor Summary
CmsPageLinks(int resourceId)
          Constructor.
CmsPageLinks(int resourceId, Vector linkTargets)
          Constructor.
 
Method Summary
 void addLinkTarget(String target)
          adds a single target to the page.
 Vector getLinkTargets()
          retuns the Vector with the link targets.
 int getResourceId()
          returns the id of this.
 String getResourceName()
          returns the resourcename
 void setOnline(boolean isOnline)
           
 void setResourceName(String name)
          sets the resourcename
 String toString()
          Returns a string-representation for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsPageLinks

public CmsPageLinks(int resourceId)
Constructor.

Parameters:
resourceId - The database id of the resource

CmsPageLinks

public CmsPageLinks(int resourceId,
                    Vector linkTargets)
Constructor.

Parameters:
resourceId - The database id of the resource
linkTargets - A Vector (of resourcenames, Strings) with the targets of the links
Method Detail

addLinkTarget

public void addLinkTarget(String target)
adds a single target to the page.


getResourceId

public int getResourceId()
returns the id of this.


getResourceName

public String getResourceName()
returns the resourcename


getLinkTargets

public Vector getLinkTargets()
retuns the Vector with the link targets.


setOnline

public void setOnline(boolean isOnline)

setResourceName

public void setResourceName(String name)
sets the resourcename


toString

public String toString()
Returns a string-representation for this object. This can be used for debugging.

Overrides:
toString in class Object
Returns:
string-representation for this object.