Class MacroDefinitionBuilder
- java.lang.Object
-
- com.atlassian.confluence.xhtml.api.MacroDefinitionBuilder
-
public class MacroDefinitionBuilder extends Object
A builder that will create the a complexMacroDefinition
.
-
-
Method Summary
-
-
-
Method Detail
-
withName
public MacroDefinitionBuilder withName(String name)
-
withMacroBody
public MacroDefinitionBuilder withMacroBody(MacroBody macroBody)
-
withParameters
public MacroDefinitionBuilder withParameters(Map<String,String> parameters)
-
withParameter
public MacroDefinitionBuilder withParameter(String key, String value)
-
withTypedParameters
public MacroDefinitionBuilder withTypedParameters(Map<String,Object> typedParameters)
-
withTypedParameter
public MacroDefinitionBuilder withTypedParameter(String key, Object value)
-
withStorageVersion
public MacroDefinitionBuilder withStorageVersion(String storageVersion)
-
withMacroId
@Deprecated public MacroDefinitionBuilder withMacroId(com.atlassian.fugue.Option<MacroId> macroId)
Deprecated.since 7.0.1. UsewithMacroIdentifier(String)
-
withMacroId
public MacroDefinitionBuilder withMacroId(MacroId macroId)
-
withMacroId
public MacroDefinitionBuilder withMacroId(String macroId)
-
withMacroIdentifier
public MacroDefinitionBuilder withMacroIdentifier(MacroId macroId)
- Since:
- 7.0.1
-
withMacroIdentifier
public MacroDefinitionBuilder withMacroIdentifier(String macroId)
- Since:
- 7.0.1
-
withSchemaVersion
public MacroDefinitionBuilder withSchemaVersion(int schemaVersion)
-
getName
public String getName()
-
getSchemaVersion
public int getSchemaVersion()
-
getMacroBody
public MacroBody getMacroBody()
-
getStorageVersion
public String getStorageVersion()
-
getMacroId
@Deprecated public com.atlassian.fugue.Option<MacroId> getMacroId()
Deprecated.since 7.0.1
-
getMacroIdentifier
public MacroId getMacroIdentifier()
- Since:
- 7.0.1
-
build
public MacroDefinition build()
-
setDefaultParameterValue
public void setDefaultParameterValue(String defaultParameterValue)
-
-