public enum MacroParameterType extends Enum<MacroParameterType>
Matches enum values in the macro_fallback.xml DTD.
Enum Constant and Description |
---|
ATTACHMENT
An attachment name (optionally qualified by container content title, space key and/or publication date).
|
BOOLEAN
A boolean value.
|
COLOR
A colour in CSS format.
|
CONFLUENCE_CONTENT
A content entity title (optionally qualified by space key and/or publication date).
|
CQL
A CQL expression, generally for macros that perform content searches.
|
DATE
A blog publication date (optionally qualified by space key).
|
ENUM
A string, chosen from a limited set of values.
|
FULL_ATTACHMENT
An attachment name (param with that type will be stored in storage format as below)
|
GROUP
A group.
|
INT
An integer.
|
LABEL
A label.
|
PERCENTAGE
A number, including a percent sign.
|
RELATIVE_DATE
A date range, specified by one or two time offsets (e.g.
|
SPACE_KEY
A space key.
|
STRING
A raw string, or some other type not handled by confluence.
|
URL
A URL.
|
USERNAME
A user.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable MacroParameterType |
get(String typeName) |
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.
|
public static final MacroParameterType STRING
public static final MacroParameterType BOOLEAN
public static final MacroParameterType USERNAME
public static final MacroParameterType ENUM
public static final MacroParameterType INT
public static final MacroParameterType SPACE_KEY
public static final MacroParameterType RELATIVE_DATE
public static final MacroParameterType PERCENTAGE
public static final MacroParameterType CONFLUENCE_CONTENT
public static final MacroParameterType URL
public static final MacroParameterType COLOR
public static final MacroParameterType ATTACHMENT
public static final MacroParameterType FULL_ATTACHMENT
When convert from storage format above to macro definition. This param will be converted to 4 params(attachment name, page,space,date)
public static final MacroParameterType LABEL
public static final MacroParameterType DATE
public static final MacroParameterType GROUP
public static final MacroParameterType CQL
public static MacroParameterType[] values()
for (MacroParameterType c : MacroParameterType.values()) System.out.println(c);
public static MacroParameterType 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 getName()
public static @Nullable MacroParameterType get(String typeName)
public String toString()
toString
in class Enum<MacroParameterType>
Copyright © 2003–2021 Atlassian. All rights reserved.