Package io.wcm.handler.link.type
Class InvalidLinkType
- java.lang.Object
-
- io.wcm.handler.link.spi.LinkType
-
- io.wcm.handler.link.type.InvalidLinkType
-
@Model(adaptables={org.apache.sling.api.SlingHttpServletRequest.class,org.apache.sling.api.resource.Resource.class}) @ProviderType public final class InvalidLinkType extends LinkType
This link type is used for invalid links. It must not be registered explicitly.
-
-
Field Summary
Fields Modifier and Type Field Description static @NotNull java.lang.String
ID
Link type ID
-
Constructor Summary
Constructors Constructor Description InvalidLinkType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(@NotNull java.lang.String linkRef)
Checks whether a link reference string can be handled by this link type@NotNull java.lang.String
getId()
@Nullable java.lang.String
getPrimaryLinkRefProperty()
@NotNull Link
resolveLink(@NotNull Link link)
Resolves a link-
Methods inherited from class io.wcm.handler.link.spi.LinkType
accepts, getEditComponentResourceType, getLabel, hasRichTextPlugin
-
-
-
-
Field Detail
-
ID
@NotNull public static final @NotNull java.lang.String ID
Link type ID- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
@NotNull public @NotNull java.lang.String getId()
-
getPrimaryLinkRefProperty
@Nullable public @Nullable java.lang.String getPrimaryLinkRefProperty()
- Specified by:
getPrimaryLinkRefProperty
in classLinkType
- Returns:
- Name of the property in which the primary link reference is stored
-
accepts
public boolean accepts(@NotNull @NotNull java.lang.String linkRef)
Description copied from class:LinkType
Checks whether a link reference string can be handled by this link type
-
resolveLink
@NotNull public @NotNull Link resolveLink(@NotNull @NotNull Link link)
Description copied from class:LinkType
Resolves a link- Specified by:
resolveLink
in classLinkType
- Parameters:
link
- Link metadata- Returns:
- Resolved link metadata. Never null.
-
-