Package ru.testit.models
Class LinkItem
- java.lang.Object
-
- ru.testit.models.LinkItem
-
public class LinkItem extends java.lang.ObjectModel object to pass links to external resources.
-
-
Constructor Summary
Constructors Constructor Description LinkItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Gets description.java.lang.StringgetTitle()Gets title.LinkTypegetType()Gets type.java.lang.StringgetUrl()Gets url.LinkItemsetDescription(java.lang.String description)Sets description.LinkItemsetTitle(java.lang.String title)Sets title.LinkItemsetType(LinkType type)Sets type.LinkItemsetUrl(java.lang.String url)Sets url.java.lang.StringtoString()
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
Gets title.- Returns:
- the title
-
setTitle
public LinkItem setTitle(java.lang.String title)
Sets title.- Parameters:
title- the value- Returns:
- self for method chaining
-
getUrl
public java.lang.String getUrl()
Gets url.- Returns:
- the url
-
setUrl
public LinkItem setUrl(java.lang.String url)
Sets url.- Parameters:
url- the value- Returns:
- self for method chaining
-
getDescription
public java.lang.String getDescription()
Gets description.- Returns:
- the description
-
setDescription
public LinkItem setDescription(java.lang.String description)
Sets description.- Parameters:
description- the value- Returns:
- self for method chaining
-
getType
public LinkType getType()
Gets type.- Returns:
- the type
-
setType
public LinkItem setType(LinkType type)
Sets type.- Parameters:
type- the value- Returns:
- self for method chaining
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-