org.xwiki.gwt.wysiwyg.client.plugin.link
Enum LinkConfig.LinkType
java.lang.Object
java.lang.Enum<LinkConfig.LinkType>
org.xwiki.gwt.wysiwyg.client.plugin.link.LinkConfig.LinkType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<LinkConfig.LinkType>
- Enclosing class:
- LinkConfig
public static enum LinkConfig.LinkType
- extends java.lang.Enum<LinkConfig.LinkType>
Enumeration type to store the type of link: wiki external link, link to an existing page, link to a new page,
etc.
|
Enum Constant Summary |
ATTACHMENT
|
EMAIL
|
EXTERNAL
Link types: external link (default for any unrecognized link), internal link targeting an existent page,
internal link targeting a new page, link targeting an attached file, external link to an email address. |
NEW_WIKIPAGE
|
WIKIPAGE
|
|
Method Summary |
static LinkConfig.LinkType |
valueOf(java.lang.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're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
EXTERNAL
public static final LinkConfig.LinkType EXTERNAL
- Link types: external link (default for any unrecognized link), internal link targeting an existent page,
internal link targeting a new page, link targeting an attached file, external link to an email address.
NEW_WIKIPAGE
public static final LinkConfig.LinkType NEW_WIKIPAGE
WIKIPAGE
public static final LinkConfig.LinkType WIKIPAGE
ATTACHMENT
public static final LinkConfig.LinkType ATTACHMENT
EMAIL
public static final LinkConfig.LinkType EMAIL
values
public static final LinkConfig.LinkType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(LinkConfig.LinkType c : LinkConfig.LinkType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static LinkConfig.LinkType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
Copyright © 2004-2010 XWiki. All Rights Reserved.