Class MediaDto
java.lang.Object
org.broadleafcommerce.common.media.domain.MediaDto
- All Implemented Interfaces:
Serializable
,Media
,Wrappable
A null safe media object.
- Author:
- bpolster
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getTags()
getTitle()
getUrl()
boolean
isUnwrappableAs
(Class unwrapType) Can this wrapped item be unwrapped as the indicated type?void
setAltText
(String altText) void
void
void
void
<T> T
Get the wrapped delegate item
-
Field Details
-
id
protected long id -
url
-
title
-
altText
-
tags
-
-
Constructor Details
-
MediaDto
public MediaDto()
-
-
Method Details
-
getId
-
setId
-
getUrl
-
setUrl
-
getTitle
-
setTitle
-
getAltText
- Specified by:
getAltText
in interfaceMedia
-
setAltText
- Specified by:
setAltText
in interfaceMedia
-
getTags
-
setTags
-
isUnwrappableAs
Description copied from interface:Wrappable
Can this wrapped item be unwrapped as the indicated type?- Specified by:
isUnwrappableAs
in interfaceWrappable
- Parameters:
unwrapType
- The type to check.- Returns:
- True/false.
-
unwrap
Description copied from interface:Wrappable
Get the wrapped delegate item
-