public final class ParameterElementDeclaration extends ElementDeclaration implements MetadataPropertiesAwareElementDeclaration
ParameterModel configuration.declaringExtension, name| Constructor and Description |
|---|
ParameterElementDeclaration() |
ParameterElementDeclaration(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadataProperty(String name,
Serializable value)
Adds a
metadataProperty to the ElementDeclaration. |
boolean |
equals(Object o) |
Map<String,Serializable> |
getMetadataProperties() |
Optional<Serializable> |
getMetadataProperty(String name)
Retrieves a
metadataProperty to the ElementDeclaration. |
ParameterValue |
getValue() |
int |
hashCode() |
void |
setValue(ParameterValue value)
Associates a
ParameterValue as part of this parameter configuration declaration |
getDeclaringExtension, getName, setDeclaringExtension, setNamepublic ParameterElementDeclaration()
public ParameterElementDeclaration(String name)
public void setValue(ParameterValue value)
ParameterValue as part of this parameter configuration declarationvalue - the ParameterValue to associate with this parameter configurationpublic ParameterValue getValue()
ParameterValue configured for this parameter declarationpublic boolean equals(Object o)
equals in class ElementDeclarationpublic int hashCode()
hashCode in class ElementDeclarationpublic Optional<Serializable> getMetadataProperty(String name)
metadataProperty to the ElementDeclaration.
This property is meant to hold only metadata of the declaration,
related to how the declaration has to be represented but not affecting nor containing
information related to the model configured with this declaration.getMetadataProperty in interface MetadataPropertiesAwareElementDeclarationname - the name of the propertyOptional.empty() if none was found.public Map<String,Serializable> getMetadataProperties()
getMetadataProperties in interface MetadataPropertiesAwareElementDeclarationEnrichableElementDeclarationpublic void addMetadataProperty(String name, Serializable value)
metadataProperty to the ElementDeclaration.
This property is meant to hold only metadata of the declaration,
related to how the declaration has to be represented but not affecting nor containing
information related to the model configured with this declaration.
This property may contain information regarding things like transformations required for
the persistence of a given element, or propagating particular metadata of how the
declaration was originally declared before deserialization.
An example for this would be having an xmlns prefix declared different than
the one declared by the extension. So in order to represent:
<my-http-alias:listener-config> we will declare an http:listener-config
adding also a metadataProperty with the custom prefix my-http-alias.
This way, we can honour the original XML representation, but keep
the ElementDeclaration closer the the model it represents.addMetadataProperty in interface MetadataPropertiesAwareElementDeclarationname - custom attribute name.value - custom attribute value.Copyright © 2017 MuleSoft, Inc.. All rights reserved.