com.atlassian.confluence.macro.browser.beans
Enum MacroParameterType

java.lang.Object
  extended by java.lang.Enum<MacroParameterType>
      extended by 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.


Enum Constant Summary
ATTACHMENT
           
BOOLEAN
           
COLOR
           
CONFLUENCE_CONTENT
           
DATE
           
ENUM
           
GROUP
           
INT
           
LABEL
           
PERCENTAGE
           
RELATIVE_DATE
           
SPACE_KEY
           
STRING
           
URL
           
USERNAME
           
 
Method Summary
static MacroParameterType get(String name)
           
 String getName()
           
 String toString()
           
static MacroParameterType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MacroParameterType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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-2012 Atlassian. All Rights Reserved.