public static enum LinkConfig.LinkType extends Enum<LinkConfig.LinkType>
| Enum Constant and Description |
|---|
ATTACHMENT
Link targeting an attached file.
|
EMAIL
External link to an email address.
|
EXTERNAL
External link (default for any unrecognized link).
|
NEW_WIKIPAGE
Internal link targeting a new page.
|
WIKIPAGE
Internal link targeting an existent page.
|
| Modifier and Type | Method and Description |
|---|---|
static LinkConfig.LinkType |
getByClassName(String className) |
String |
getClassName() |
static LinkConfig.LinkType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LinkConfig.LinkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LinkConfig.LinkType EXTERNAL
public static final LinkConfig.LinkType NEW_WIKIPAGE
public static final LinkConfig.LinkType WIKIPAGE
public static final LinkConfig.LinkType ATTACHMENT
public static final LinkConfig.LinkType EMAIL
public static LinkConfig.LinkType[] values()
for (LinkConfig.LinkType c : LinkConfig.LinkType.values()) System.out.println(c);
public static LinkConfig.LinkType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String getClassName()
public static LinkConfig.LinkType getByClassName(String className)
className - a CSS class name used to mark a specific type of linkLinkConfig.LinkType corresponding to the given class name, null if none of the link types
match the given class nameCopyright © 2004–2014 XWiki. All rights reserved.