public class NestedComponentDeclarer<T extends NestedComponentDeclarer,D extends NestedComponentDeclaration> extends Declarer<D> implements HasModelProperties<T>
NestedComponentDeclaration
through a fluent APIdeclaration
Constructor and Description |
---|
NestedComponentDeclarer(D declaration)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
T |
describedAs(String description)
Adds a description
|
NestedComponentDeclarer |
withAllowedStereotypes(StereotypeModel... stereotypes)
Adds the given
stereotypes to the ones which are allowed on
the route. |
T |
withModelProperty(ModelProperty modelProperty)
Adds the given
modelProperty |
getDeclaration
public NestedComponentDeclarer(D declaration)
declaration
- the NestedComponentDeclaration
to be configuredpublic NestedComponentDeclarer withAllowedStereotypes(StereotypeModel... stereotypes)
stereotypes
to the ones which are allowed on
the route.stereotypes
- the stereotypes to addthis
declarerpublic T withModelProperty(ModelProperty modelProperty)
HasModelProperties
modelProperty
withModelProperty
in interface HasModelProperties<T extends NestedComponentDeclarer>
modelProperty
- a ModelProperty
this
declarerCopyright © 2018. All rights reserved.