com.atlassian.confluence.macro.browser.beans
Enum MacroParameterType
java.lang.Object
java.lang.Enum<MacroParameterType>
com.atlassian.confluence.macro.browser.beans.MacroParameterType
- All Implemented Interfaces:
- Serializable, Comparable<MacroParameterType>
public enum MacroParameterType
- extends Enum<MacroParameterType>
The type of a macro parameter that will appear in the Macro Browser.
Matches enum values in the macro_fallback.xml DTD.
STRING
public static final MacroParameterType STRING
BOOLEAN
public static final MacroParameterType BOOLEAN
USERNAME
public static final MacroParameterType USERNAME
ENUM
public static final MacroParameterType ENUM
INT
public static final MacroParameterType INT
SPACE_KEY
public static final MacroParameterType SPACE_KEY
RELATIVE_DATE
public static final MacroParameterType RELATIVE_DATE
PERCENTAGE
public static final MacroParameterType PERCENTAGE
CONFLUENCE_CONTENT
public static final MacroParameterType CONFLUENCE_CONTENT
URL
public static final MacroParameterType URL
COLOR
public static final MacroParameterType COLOR
ATTACHMENT
public static final MacroParameterType ATTACHMENT
LABEL
public static final MacroParameterType LABEL
DATE
public static final MacroParameterType DATE
GROUP
public static final MacroParameterType GROUP
values
public static MacroParameterType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (MacroParameterType c : MacroParameterType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MacroParameterType valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getName
public String getName()
get
public static MacroParameterType get(String name)
toString
public String toString()
- Overrides:
toString
in class Enum<MacroParameterType>
Copyright © 2003-2011 Atlassian. All Rights Reserved.