Package com.nomagic.magicdraw.hyperlinks
Class HyperlinksHandlersRegistry
- java.lang.Object
-
- com.nomagic.magicdraw.hyperlinks.HyperlinksHandlersRegistry
-
@OpenApiAll public class HyperlinksHandlersRegistry extends java.lang.Object
Register of hyperlink handlers.- See Also:
HyperlinkHandler
-
-
Field Summary
Fields Modifier and Type Field Description static HyperlinkHandler
ANY_HYPERLINK_HANDLER
private static java.util.List<HyperlinkHandler>
handlers
-
Constructor Summary
Constructors Constructor Description HyperlinksHandlersRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addHandler(HyperlinkHandler handler)
Register hyperlink handler.static HyperlinkHandler
getHandler(java.lang.String protocol)
static java.util.List<HyperlinkHandler>
getHandlers()
static void
removeHandler(HyperlinkHandler handler)
Unregister hyperlink handler.
-
-
-
Field Detail
-
handlers
private static final java.util.List<HyperlinkHandler> handlers
-
ANY_HYPERLINK_HANDLER
public static final HyperlinkHandler ANY_HYPERLINK_HANDLER
-
-
Method Detail
-
addHandler
public static void addHandler(HyperlinkHandler handler)
Register hyperlink handler.- Parameters:
handler
- handler to register.
-
removeHandler
public static void removeHandler(HyperlinkHandler handler)
Unregister hyperlink handler.- Parameters:
handler
- handler to unregister.
-
getHandler
@CheckForNull public static HyperlinkHandler getHandler(java.lang.String protocol)
-
getHandlers
public static java.util.List<HyperlinkHandler> getHandlers()
-
-