public final class TopLevelParameterDeclaration extends EnrichableElementDeclaration implements ReferableElementDeclaration, GlobalElementDeclaration
ObjectType configuration that will
be used as a global element of the mule application.declaringExtension, name| Constructor and Description |
|---|
TopLevelParameterDeclaration() |
TopLevelParameterDeclaration(String extension,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(GlobalElementDeclarationVisitor visitor)
Dispatches to the method with prefix "visit" with the specific value type as argument.
|
boolean |
equals(Object o) |
<T extends ElementDeclaration> |
findElement(List<String> parts)
|
String |
getRefName() |
ParameterObjectValue |
getValue() |
int |
hashCode() |
void |
setRefName(String referableName)
Sets the configured name of the element that can be used to reference
it in the context of an
ArtifactDeclaration |
void |
setValue(ParameterObjectValue value)
Associates a
ParameterObjectValue as part of this parameter configuration declaration |
addCustomConfigurationParameter, addMetadataProperty, getCustomConfigurationParameters, getMetadataProperties, getMetadataPropertygetDeclaringExtension, getName, setDeclaringExtension, setNameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddCustomConfigurationParameter, getCustomConfigurationParametersgetDeclaringExtension, setDeclaringExtensiongetName, setNameaddMetadataProperty, getMetadataProperties, getMetadataPropertypublic void setValue(ParameterObjectValue value)
ParameterObjectValue as part of this parameter configuration declaration
Since a TopLevelParameterDeclaration represents an ObjectType global declaration,
only a ParameterObjectValue can be associated to it.
value - the ParameterObjectValue to associate with this parameter configurationpublic ParameterObjectValue getValue()
ParameterObjectValue configured for this parameter declarationpublic String getRefName()
getRefName in interface ReferableElementDeclarationArtifactDeclarationpublic void setRefName(String referableName)
ArtifactDeclarationsetRefName in interface ReferableElementDeclarationreferableName - the configured name of the elementpublic boolean equals(Object o)
equals in class EnrichableElementDeclarationpublic int hashCode()
hashCode in class EnrichableElementDeclarationpublic void accept(GlobalElementDeclarationVisitor visitor)
GlobalElementDeclarationvisitObjectValue(ParameterObjectValue objectValue) will be called
when this value is an GlobalElementDeclaration.accept in interface GlobalElementDeclarationvisitor - the visitorpublic <T extends ElementDeclaration> Optional<T> findElement(List<String> parts)
ElementDeclarationContainerfindElement in interface ElementDeclarationContainerparts - the parts of a Location relative to this elementElementDeclaration located in the path created by the parts
or Optional.empty() if no ElementDeclaration was found in that location.Copyright © 2017 MuleSoft, Inc.. All rights reserved.