@Immutable public final class TextLinkInfo extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getFullUrl(String key)
Get the full URL by replacing {id} with the specified key.
|
static TextLinkInfo |
getInfo(IIdentifyable<?> instance)
Locates an instance for a specific data bclass.
|
static TextLinkInfo |
getInfo(String linkName)
Get the link info for the specified link name.
|
String |
getLinkname()
The name of the link inside the text file (the "local name")
|
String |
getRurl()
The application-relative URL that this link should defer to.
|
Class<?> |
getTargetClass()
If this type of link is always used to show a given data class, then this can contain that class to make adding
links easier.
|
static void |
register(Class<? extends IIdentifyable<?>> dataclass,
String rurl)
Register a link that represents a given data class.
|
static void |
register(Class<? extends IIdentifyable<?>> dataclass,
String linkname,
String rurl)
Register an explicitly named link that represents a given data type.
|
static void |
register(String linkname,
String rurl)
Register a link by name without data class.
|
@Nonnull public String getRurl()
@Nullable public Class<?> getTargetClass()
LinkedText.link(to.etc.webapp.query.IIdentifyable).@Nonnull public String getLinkname()
public static void register(@Nonnull Class<? extends IIdentifyable<?>> dataclass, @Nonnull String rurl)
dataclass - clz - paramName - public static void register(@Nonnull Class<? extends IIdentifyable<?>> dataclass, @Nonnull String linkname, @Nonnull String rurl)
dataclass - linkname - rurl - public static void register(@Nonnull String linkname, @Nonnull String rurl)
linkname - rurl - @Nullable public static TextLinkInfo getInfo(String linkName)
linkName - @Nullable public static TextLinkInfo getInfo(@Nullable IIdentifyable<?> instance)
instance - Copyright © 2017 etc.to. All rights reserved.