org.opencms.gwt.shared
Class CmsBrokenLinkBean

java.lang.Object
  extended by org.opencms.gwt.shared.CmsBrokenLinkBean
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsBrokenLinkBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable

A bean which represents either the source or the target of a broken link.

Since:
8.0.0

Constructor Summary
protected CmsBrokenLinkBean()
          Hidden default constructor.
  CmsBrokenLinkBean(String title, String subtitle)
          Constructor without a type parameter.
  CmsBrokenLinkBean(String title, String subtitle, String type)
          Constructor.
 
Method Summary
 void addChild(CmsBrokenLinkBean bean)
          Adds a child bean to this bean.
 List<CmsBrokenLinkBean> getChildren()
          Returns the child beans of this bean.
 String getSubTitle()
          Returns the sub-title of the bean.
 String getTitle()
          Returns the title of the bean.
 String getType()
          Returns the resource type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsBrokenLinkBean

public CmsBrokenLinkBean(String title,
                         String subtitle)
Constructor without a type parameter.

Parameters:
title - the title
subtitle - the subtitle

CmsBrokenLinkBean

public CmsBrokenLinkBean(String title,
                         String subtitle,
                         String type)
Constructor.

Parameters:
title - the title
subtitle - the subtitle
type - the resource type

CmsBrokenLinkBean

protected CmsBrokenLinkBean()
Hidden default constructor.

Method Detail

addChild

public void addChild(CmsBrokenLinkBean bean)
Adds a child bean to this bean.

The child usually represents a link target.

Parameters:
bean - the bean to add as a sub-bean

getChildren

public List<CmsBrokenLinkBean> getChildren()
Returns the child beans of this bean.

Returns:
the list of child beans

getSubTitle

public String getSubTitle()
Returns the sub-title of the bean.

Returns:
the sub-title

getTitle

public String getTitle()
Returns the title of the bean.

Returns:
the title of the bean

getType

public String getType()
Returns the resource type.

Returns:
the resource type