public class OutputDeclarer<T extends OutputDeclarer> extends Object implements HasModelProperties<OutputDeclarer<T>>
OutputDeclaration
through a fluent APIModifier and Type | Method and Description |
---|---|
T |
describedAs(String description)
Adds a description
|
OutputDeclaration |
getDeclaration()
Gets the declaration object for this descriptor
|
T |
ofDynamicType(MetadataType type)
Specifies that the Element being described has a
type
of dynamic kind, meaning that this Element's type is
bounded to the component 's configuration during
application design time and should be discovered using the MetadataService service |
T |
ofType(MetadataType type)
Specifies that the
OutputModel has a type
of static kind. |
OutputDeclarer<T> |
withModelProperty(ModelProperty modelProperty)
Adds the given
modelProperty |
public T ofType(MetadataType type)
OutputModel
has a type
of static kind.type
- the type of the parameterpublic T ofDynamicType(MetadataType type)
type
of dynamic kind, meaning that this Element's type is
bounded to the component
's configuration during
application design time and should be discovered using the MetadataService
servicetype
- the type of the Element being describedthis
declarerpublic T describedAs(String description)
description
- a descriptionthis
descriptorpublic OutputDeclarer<T> withModelProperty(ModelProperty modelProperty)
modelProperty
withModelProperty
in interface HasModelProperties<OutputDeclarer<T extends OutputDeclarer>>
modelProperty
- a ModelProperty
this
declarerpublic OutputDeclaration getDeclaration()
OutputDeclaration
Copyright © 2018. All rights reserved.