Class CommerceTeaserActionItemImpl
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.models.v1.teaser.CommerceTeaserActionItemImpl
-
- All Implemented Interfaces:
CommerceTeaserActionItem
,com.adobe.cq.export.json.ComponentExporter
,com.adobe.cq.wcm.core.components.models.Component
,com.adobe.cq.wcm.core.components.models.ListItem
public class CommerceTeaserActionItemImpl extends Object implements CommerceTeaserActionItem
-
-
Constructor Summary
Constructors Constructor Description CommerceTeaserActionItemImpl(String title, String url)
CommerceTeaserActionItemImpl(String title, String url, CommerceIdentifier id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommerceIdentifier
getEntityIdentifier()
Returns the id of the entity associated with this teaser action.String
getTitle()
String
getURL()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
CommerceTeaserActionItemImpl
public CommerceTeaserActionItemImpl(String title, String url, CommerceIdentifier id)
-
-
Method Detail
-
getTitle
@Nonnull public String getTitle()
- Specified by:
getTitle
in interfacecom.adobe.cq.wcm.core.components.models.ListItem
-
getURL
@Nonnull public String getURL()
- Specified by:
getURL
in interfacecom.adobe.cq.wcm.core.components.models.ListItem
-
getEntityIdentifier
@Nullable public CommerceIdentifier getEntityIdentifier()
Description copied from interface:CommerceTeaserActionItem
Returns the id of the entity associated with this teaser action.- Specified by:
getEntityIdentifier
in interfaceCommerceTeaserActionItem
- Returns:
- a
CommerceIdentifier
object representing the identifier of the entity
-
-