public class NestedComponentModel extends Object implements NestableElementModel
NestableElementModel that makes reference to a single ComponentModel| Constructor and Description |
|---|
NestedComponentModel() |
NestedComponentModel(String name,
String description,
DisplayModel displayModel,
boolean isRequired,
Set<StereotypeModel> allowedStereotypes)
Deprecated.
use
NestedComponentModel#NestedComponentModel(String, String, DisplayModel, boolean, Set, List, DeprecationModel, Set, Integer, Optional, List, StereotypeModel) |
NestedComponentModel(String name,
String description,
DisplayModel displayModel,
boolean isRequired,
Set<StereotypeModel> allowedStereotypes,
List<ParameterGroupModel> parameterGroupModels,
DeprecationModel deprecationModel,
Set<ErrorModel> errorModels,
Integer minOccurs,
Integer maxOccurs,
List<? extends NestableElementModel> nestedComponents,
StereotypeModel stereotypeModel,
Set<String> semanticTerms)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(NestableElementModelVisitor visitor) |
boolean |
equals(Object obj) |
Set<StereotypeModel> |
getAllowedStereotypes() |
Feature<DeprecationModel> |
getDeprecationModel() |
String |
getDescription() |
DisplayModel |
getDisplayModel() |
Feature<Set<ErrorModel>> |
getErrorModels() |
Feature<Optional<Integer>> |
getMaxOccurs() |
Feature<Integer> |
getMinOccurs() |
String |
getName() |
Feature<List<? extends NestableElementModel>> |
getNestedComponents() |
Feature<List<ParameterGroupModel>> |
getParameterGroupModels() |
Set<String> |
getSemanticTerms()
Returns the semantic terms contained in this model.
|
Feature<StereotypeModel> |
getStereotype() |
int |
hashCode() |
boolean |
isRequired() |
String |
toString() |
public NestedComponentModel()
@Deprecated public NestedComponentModel(String name, String description, DisplayModel displayModel, boolean isRequired, Set<StereotypeModel> allowedStereotypes)
NestedComponentModel#NestedComponentModel(String, String, DisplayModel, boolean, Set, List, DeprecationModel, Set, Integer, Optional, List, StereotypeModel)name - the model's namedescription - the model's descriptionisRequired - whether or not this component is requiredallowedStereotypes - A Set of custom properties which extend this modeldisplayModel - a model containing directives about how this component is to be displayed in the UIIllegalArgumentException - if name is blankpublic NestedComponentModel(String name, String description, DisplayModel displayModel, boolean isRequired, Set<StereotypeModel> allowedStereotypes, List<ParameterGroupModel> parameterGroupModels, DeprecationModel deprecationModel, Set<ErrorModel> errorModels, Integer minOccurs, Integer maxOccurs, List<? extends NestableElementModel> nestedComponents, StereotypeModel stereotypeModel, Set<String> semanticTerms)
name - the model's namedescription - the model's descriptiondisplayModel - a model which contains directive about how this component is displayed in the UIisRequired - whether or not this component is requiredallowedStereotypes - a Set with the StereotypeModels that can be assigned to this nested element.parameterGroupModels - a List with the source's parameter group modelsdeprecationModel - a DeprecationModel describing if the component is deprecated. A null value means it iserrorModels - a Set of errors this component could throwminOccurs - the minimum number of instances required for this componentmaxOccurs - maximum amount of times that this component can be used inside the owning one. null means
unbounded.nestedComponents - a List with the components contained by this modelstereotypeModel - the stereotype of this component not deprecated.semanticTerms - a Set of semantic terms which describe the component's meaning and effectIllegalArgumentException - if name is blankpublic Set<StereotypeModel> getAllowedStereotypes()
public boolean isRequired()
public String getName()
public String getDescription()
public DisplayModel getDisplayModel()
public Feature<List<ParameterGroupModel>> getParameterGroupModels()
public Feature<DeprecationModel> getDeprecationModel()
public Feature<Set<ErrorModel>> getErrorModels()
public Feature<List<? extends NestableElementModel>> getNestedComponents()
public Feature<StereotypeModel> getStereotype()
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 void accept(NestableElementModelVisitor visitor)
accept in interface NestableElementModelCopyright © 2022 MuleSoft, Inc.. All rights reserved.