|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<MacroDefinitionMarshallingStrategy> com.atlassian.confluence.xhtml.api.MacroDefinitionMarshallingStrategy
public enum MacroDefinitionMarshallingStrategy
Provides strategies for marshalling MacroDefinitions.
Enum Constant Summary | |
---|---|
DISCARD_MACRO
Discard the macro now that we're done with it. |
|
MARSHALL_MACRO
Marshall the macro, to allow its use later on. |
Method Summary | |
---|---|
abstract Streamable |
marshal(MacroDefinition macroDefinition,
ConversionContext conversionContext,
Marshaller<MacroDefinition> macroDefinitionMarshaller)
Convert the MacroDefinition to a string. |
static MacroDefinitionMarshallingStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MacroDefinitionMarshallingStrategy[] |
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, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MacroDefinitionMarshallingStrategy DISCARD_MACRO
public static final MacroDefinitionMarshallingStrategy MARSHALL_MACRO
Method Detail |
---|
public static MacroDefinitionMarshallingStrategy[] values()
for (MacroDefinitionMarshallingStrategy c : MacroDefinitionMarshallingStrategy.values()) System.out.println(c);
public static MacroDefinitionMarshallingStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic abstract Streamable marshal(MacroDefinition macroDefinition, ConversionContext conversionContext, Marshaller<MacroDefinition> macroDefinitionMarshaller) throws XhtmlException
macroDefinition
- the macro to convertconversionContext
- the context for converting the macromacroDefinitionMarshaller
- a marshaller capable of converting the macro
XhtmlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |