Class LinkWrapper
- java.lang.Object
-
- io.wcm.wcm.core.components.commons.link.LinkWrapper
-
- All Implemented Interfaces:
com.adobe.cq.wcm.core.components.commons.link.Link
public final class LinkWrapper extends java.lang.Object implements com.adobe.cq.wcm.core.components.commons.link.Link
Wraps a wcm.io Link object into a Core Components Link.
-
-
Constructor Summary
Constructors Constructor Description LinkWrapper(@NotNull io.wcm.handler.link.Link link)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.String
getExternalizedURL()
@NotNull java.util.Map
getHtmlAttributes()
@NotNull io.wcm.handler.link.Link
getLinkObject()
@Nullable java.lang.String
getMappedURL()
@Nullable java.lang.Object
getReference()
@Nullable java.lang.String
getURL()
boolean
isValid()
com.adobe.cq.wcm.core.components.commons.link.Link
orNull()
-
-
-
Method Detail
-
isValid
public boolean isValid()
- Specified by:
isValid
in interfacecom.adobe.cq.wcm.core.components.commons.link.Link
-
getURL
@Nullable public @Nullable java.lang.String getURL()
- Specified by:
getURL
in interfacecom.adobe.cq.wcm.core.components.commons.link.Link
-
getMappedURL
@Nullable public @Nullable java.lang.String getMappedURL()
- Specified by:
getMappedURL
in interfacecom.adobe.cq.wcm.core.components.commons.link.Link
-
getExternalizedURL
@Nullable public @Nullable java.lang.String getExternalizedURL()
- Specified by:
getExternalizedURL
in interfacecom.adobe.cq.wcm.core.components.commons.link.Link
-
getHtmlAttributes
@NotNull public @NotNull java.util.Map getHtmlAttributes()
- Specified by:
getHtmlAttributes
in interfacecom.adobe.cq.wcm.core.components.commons.link.Link
-
getReference
@Nullable public @Nullable java.lang.Object getReference()
- Specified by:
getReference
in interfacecom.adobe.cq.wcm.core.components.commons.link.Link
-
orNull
@Nullable public com.adobe.cq.wcm.core.components.commons.link.Link orNull()
- Returns:
- this or null if link is invalid
-
getLinkObject
@NotNull public @NotNull io.wcm.handler.link.Link getLinkObject()
- Returns:
- wcm.io Link
-
-