public class ConstructModel extends Object implements ComponentModel
| Constructor and Description |
|---|
ConstructModel(String name,
String description,
List<ParameterGroupModel> parameterGroupModels,
DisplayModel displayModel,
StereotypeModel stereotype,
List<? extends NestableElementModel> nestedComponents,
boolean allowsTopLevelDefinition,
Set<ErrorModel> errorModels)
Creates a new instance with the given state
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsTopLevelDeclaration() |
boolean |
equals(Object obj) |
String |
getDescription()
Returns the component's description
|
Optional<DisplayModel> |
getDisplayModel() |
Set<ErrorModel> |
getErrorModels() |
String |
getName()
Gets the name of the object
|
List<? extends NestableElementModel> |
getNestedComponents() |
Optional<ParameterGroupModel> |
getParameterGroupModel(String name) |
List<ParameterGroupModel> |
getParameterGroupModels() |
StereotypeModel |
getStereotype() |
int |
hashCode() |
boolean |
isAllowsTopLevelDefinition() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllParameterModelspublic ConstructModel(String name, String description, List<ParameterGroupModel> parameterGroupModels, DisplayModel displayModel, StereotypeModel stereotype, List<? extends NestableElementModel> nestedComponents, boolean allowsTopLevelDefinition, Set<ErrorModel> errorModels)
name - the operation's name. Cannot be blankdescription - the operation's descriptorparameterGroupModels - a List with the operation's parameter group modelsdisplayModel - a model which contains directive about how this operation is displayed in the UIstereotype - the construct StereotypeModelnestedComponents - a List with the components contained by this modelallowsTopLevelDefinition - whether or not this model can be declared as a root component in the applicationerrorModels - Set of ErrorModel error modelsIllegalArgumentException - if name is blank or executorFactory is nullpublic boolean allowsTopLevelDeclaration()
public String getName()
ComponentModelgetName in interface ComponentModelpublic String getDescription()
ComponentModelgetDescription in interface ComponentModelStringpublic List<ParameterGroupModel> getParameterGroupModels()
getParameterGroupModels in interface ComponentModelgroupspublic Optional<DisplayModel> getDisplayModel()
getDisplayModel in interface ComponentModelOptional DisplayModel which contains
directives about how this model should be displayed in the UIpublic StereotypeModel getStereotype()
getStereotype in interface ComponentModelstereotypes which apply to this modelpublic List<? extends NestableElementModel> getNestedComponents()
getNestedComponents in interface ComponentModelList of components contained by
this modelpublic boolean isAllowsTopLevelDefinition()
public Set<ErrorModel> getErrorModels()
getErrorModels in interface ComponentModelSet of ErrorModel with the possible errors that the current
component could throw.ErrorModelpublic Optional<ParameterGroupModel> getParameterGroupModel(String name)
Copyright © 2018 MuleSoft, Inc.. All rights reserved.