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,
DeprecationModel deprecationModel)
Deprecated.
|
ConstructModel(String name,
String description,
List<ParameterGroupModel> parameterGroupModels,
DisplayModel displayModel,
StereotypeModel stereotype,
List<? extends NestableElementModel> nestedComponents,
boolean allowsTopLevelDefinition,
Set<ErrorModel> errorModels,
DeprecationModel deprecationModel,
TypeResolversInformationModel typeResolversInformationModel)
Creates a new instance with the given state
|
ConstructModel(String name,
String description,
List<ParameterGroupModel> parameterGroupModels,
DisplayModel displayModel,
StereotypeModel stereotype,
List<? extends NestableElementModel> nestedComponents,
boolean allowsTopLevelDefinition,
Set<ErrorModel> errorModels,
DeprecationModel deprecationModel,
TypeResolversInformationModel typeResolversInformationModel,
Set<String> semanticTerms)
Creates a new instance with the given state
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsTopLevelDeclaration() |
boolean |
equals(Object obj) |
Feature<DeprecationModel> |
getDeprecationModel() |
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() |
Set<String> |
getSemanticTerms()
Returns the semantic terms contained in this model.
|
StereotypeModel |
getStereotype() |
Feature<TypeResolversInformationModel> |
getTypeResolversInformationModel() |
int |
hashCode() |
boolean |
isAllowsTopLevelDefinition() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllParameterModels@Deprecated public ConstructModel(String name, String description, List<ParameterGroupModel> parameterGroupModels, DisplayModel displayModel, StereotypeModel stereotype, List<? extends NestableElementModel> nestedComponents, boolean allowsTopLevelDefinition, Set<ErrorModel> errorModels, DeprecationModel deprecationModel)
public ConstructModel(String name, String description, List<ParameterGroupModel> parameterGroupModels, DisplayModel displayModel, StereotypeModel stereotype, List<? extends NestableElementModel> nestedComponents, boolean allowsTopLevelDefinition, Set<ErrorModel> errorModels, DeprecationModel deprecationModel, TypeResolversInformationModel typeResolversInformationModel)
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 modelsdeprecationModel - a DeprecationModel describing if the construct is deprecated. A null value means
it is not deprecated.typeResolversInformationModel - TypeResolversInformationModel with information about metadata resolvers for this
component.IllegalArgumentException - if name is blank or executorFactory is nullpublic ConstructModel(String name, String description, List<ParameterGroupModel> parameterGroupModels, DisplayModel displayModel, StereotypeModel stereotype, List<? extends NestableElementModel> nestedComponents, boolean allowsTopLevelDefinition, Set<ErrorModel> errorModels, DeprecationModel deprecationModel, TypeResolversInformationModel typeResolversInformationModel, Set<String> semanticTerms)
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 modelsdeprecationModel - a DeprecationModel describing if the construct is deprecated. A null value means
it is not deprecated.typeResolversInformationModel - TypeResolversInformationModel with information about metadata resolvers for this
component.semanticTerms - a Set of semantic terms which describe the component's meaning and effectIllegalArgumentException - 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 ParameterizedModelgroupspublic 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 Feature<TypeResolversInformationModel> getTypeResolversInformationModel()
getTypeResolversInformationModel in interface ComponentModelTypeResolversInformationModel with the information about the resolvers for metadata types.public Feature<DeprecationModel> getDeprecationModel()
public Set<String> getSemanticTerms()
HasSemanticTermsFeature but instead, implementations should handle the cases where coming from an older
version by returning an Collections.emptySet()getSemanticTerms in interface HasSemanticTermspublic Optional<ParameterGroupModel> getParameterGroupModel(String name)
getParameterGroupModel in interface ParameterizedModelCopyright © 2022 MuleSoft, Inc.. All rights reserved.