Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.linkmanagement
Class CmsPageLinks  view CmsPageLinks download CmsPageLinks.java

java.lang.Object
  extended bycom.opencms.linkmanagement.CmsPageLinks

public class CmsPageLinks
extends java.lang.Object

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

Version:
1.0

Field Summary
private  java.util.Vector m_linkDestinations
          The Vector (Strings) with the targets (resourcenames) of the links used on this page.
private  boolean m_online
          Indicates if the resource id is from the table cms_resources (offline) or from the table cms_online_resources.
private  int m_resourceId
          the database id of the resource containing the links.
private  java.lang.String m_resourceName
          The resource name.
 
Constructor Summary
CmsPageLinks(int resourceId)
          Constructor.
CmsPageLinks(int resourceId, java.util.Vector linkTargets)
          Constructor.
 
Method Summary
 void addLinkTarget(java.lang.String target)
          adds a single target to the page.
 java.util.Vector getLinkTargets()
          retuns the Vector with the link targets.
 int getResourceId()
          returns the id of this.
 java.lang.String getResourceName()
          returns the resourcename
 void setOnline(boolean isOnline)
           
 void setResourceName(java.lang.String name)
          sets the resourcename
 java.lang.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
 

Field Detail

m_resourceId

private int m_resourceId
the database id of the resource containing the links.


m_resourceName

private java.lang.String m_resourceName
The resource name.


m_online

private boolean m_online
Indicates if the resource id is from the table cms_resources (offline) or from the table cms_online_resources.


m_linkDestinations

private java.util.Vector m_linkDestinations
The Vector (Strings) with the targets (resourcenames) of the links used on this page.

Constructor Detail

CmsPageLinks

public CmsPageLinks(int resourceId)
Constructor.


CmsPageLinks

public CmsPageLinks(int resourceId,
                    java.util.Vector linkTargets)
Constructor.

Method Detail

addLinkTarget

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


getResourceId

public int getResourceId()
returns the id of this.


getResourceName

public java.lang.String getResourceName()
returns the resourcename


getLinkTargets

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


setOnline

public void setOnline(boolean isOnline)

setResourceName

public void setResourceName(java.lang.String name)
sets the resourcename


toString

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