public class ParameterGroup extends Object implements org.mule.extension.introspection.Capable
Capable
,
allowing for this group to have a ParameterGroupCapability
which
describes the nested group.
To decouple this class from the representation model (which depending on the
context could be a Declaration
or an actual Parameter
, this class
references parameters by nameConstructor and Description |
---|
ParameterGroup(Class<?> type,
Field field) |
Modifier and Type | Method and Description |
---|---|
void |
addCapability(Object capability) |
ParameterGroup |
addParameter(String name,
Field field)
Adds a parameter to the group
|
<T> Set<T> |
getCapabilities(Class<T> capabilityType) |
Field |
getField() |
Map<String,Field> |
getParameters() |
Class<?> |
getType() |
boolean |
isCapableOf(Class<?> capabilityType) |
public ParameterGroup addParameter(String name, Field field)
name
- the name of the parameterfield
- the parameter's Field
public Class<?> getType()
public Field getField()
public void addCapability(Object capability)
public <T> Set<T> getCapabilities(Class<T> capabilityType)
getCapabilities
in interface org.mule.extension.introspection.Capable
public boolean isCapableOf(Class<?> capabilityType)
isCapableOf
in interface org.mule.extension.introspection.Capable
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.