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 LinkTypeThis 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.StringIDLink type ID
-
Constructor Summary
Constructors Constructor Description InvalidLinkType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(@NotNull java.lang.String linkRef)Checks whether a link reference string can be handled by this link type@NotNull java.lang.StringgetId()@Nullable java.lang.StringgetPrimaryLinkRefProperty()@NotNull LinkresolveLink(@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:
getPrimaryLinkRefPropertyin 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:LinkTypeChecks 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:LinkTypeResolves a link- Specified by:
resolveLinkin classLinkType- Parameters:
link- Link metadata- Returns:
- Resolved link metadata. Never null.
-
-