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 java.lang.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(java.lang.String title, java.lang.String subtitle)
          Constructor without a type parameter.
  CmsBrokenLinkBean(java.lang.String title, java.lang.String subtitle, java.lang.String type)
          Constructor.
 
Method Summary
 void addChild(CmsBrokenLinkBean bean)
          Adds a child bean to this bean.
 void addInfo(java.lang.String name, java.lang.String value)
          Adds optional page information to the broken link bean.
 java.util.List<CmsBrokenLinkBean> getChildren()
          Returns the child beans of this bean.
 java.util.Map<java.lang.String,java.lang.String> getInfo()
          Returns the additional link info.
 java.lang.String getSubTitle()
          Returns the sub-title of the bean.
 java.lang.String getTitle()
          Returns the title of the bean.
 java.lang.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(java.lang.String title,
                         java.lang.String subtitle)
Constructor without a type parameter.

Parameters:
title - the title
subtitle - the subtitle

CmsBrokenLinkBean

public CmsBrokenLinkBean(java.lang.String title,
                         java.lang.String subtitle,
                         java.lang.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

addInfo

public void addInfo(java.lang.String name,
                    java.lang.String value)
Adds optional page information to the broken link bean.

Parameters:
name - the info name
value - the info

getChildren

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

Returns:
the list of child beans

getInfo

public java.util.Map<java.lang.String,java.lang.String> getInfo()
Returns the additional link info.

Returns:
the broken link info

getSubTitle

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

Returns:
the sub-title

getTitle

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

Returns:
the title of the bean

getType

public java.lang.String getType()
Returns the resource type.

Returns:
the resource type