Package org.bremersee.common.model
Class Link
- java.lang.Object
-
- org.bremersee.common.model.Link
-
- All Implemented Interfaces:
Serializable
@Validated public class Link extends Object implements Serializable
A link description.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetBlank()Specified whether to open the link in a blank target (default isfalse).StringgetDescription()A short description.@NotBlank StringgetHref()The URI.StringgetId()Gets id.StringgetText()The link text.StringgetType()The type.voidsetBlank(Boolean blank)Specified whether to open the link in a blank target (default isfalse).voidsetDescription(String description)Sets description.voidsetHref(String href)Sets href.voidsetId(String id)Sets id.voidsetText(String text)Sets text.voidsetType(String type)Sets type.
-
-
-
Constructor Detail
-
Link
public Link(String id, String href, String type, Boolean blank, String text, String description)
Instantiates a new link.- Parameters:
id- the idhref- the hreftype- the typeblank- specified whether to open the link in a blank target (default is false)text- the textdescription- the description
-
-
Method Detail
-
getId
public String getId()
Gets id.- Returns:
- the id
-
setId
public void setId(String id)
Sets id.- Parameters:
id- the id
-
getHref
@NotBlank public @NotBlank String getHref()
The URI.- Returns:
- href href
-
setHref
public void setHref(String href)
Sets href.- Parameters:
href- the href
-
getType
public String getType()
The type.- Returns:
- type type
-
setType
public void setType(String type)
Sets type.- Parameters:
type- the type
-
getBlank
public Boolean getBlank()
Specified whether to open the link in a blank target (default isfalse).- Returns:
- the blank
-
setBlank
public void setBlank(Boolean blank)
Specified whether to open the link in a blank target (default isfalse).- Parameters:
blank- the blank
-
getText
public String getText()
The link text.- Returns:
- text text
-
setText
public void setText(String text)
Sets text.- Parameters:
text- the text
-
getDescription
public String getDescription()
A short description.- Returns:
- description description
-
setDescription
public void setDescription(String description)
Sets description.- Parameters:
description- the description
-
-