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 Boolean
getBlank()
Specified whether to open the link in a blank target (default isfalse
).String
getDescription()
A short description.@NotBlank String
getHref()
The URI.String
getId()
Gets id.String
getText()
The link text.String
getType()
The type.void
setBlank(Boolean blank)
Specified whether to open the link in a blank target (default isfalse
).void
setDescription(String description)
Sets description.void
setHref(String href)
Sets href.void
setId(String id)
Sets id.void
setText(String text)
Sets text.void
setType(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
-
-