Interface ModelElement
- All Superinterfaces:
Prototype.Api
- All Known Subinterfaces:
ClientEndpoint,HttpAnnotated,RestEndpoint,RestMethod,RestMethodParameter,ServerEndpoint
- All Known Implementing Classes:
ClientEndpoint.BuilderBase.ClientEndpointImpl,HttpAnnotated.BuilderBase.HttpAnnotatedImpl,ModelElement.BuilderBase.ModelElementImpl,RestEndpoint.BuilderBase.RestEndpointImpl,RestMethod.BuilderBase.RestMethodImpl,RestMethodParameter.BuilderBase.RestMethodParameterImpl,ServerEndpoint.BuilderBase.ServerEndpointImpl
A model for HTTP endpoints.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forModelElement.static classModelElement.BuilderBase<BUILDER extends ModelElement.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ModelElement> Fluent API builder base forModelElement. -
Method Summary
Modifier and TypeMethodDescriptionAll annotations on this element, and inherited from supertype/interface and annotations.static ModelElement.Builderbuilder()Create a new fluent API builder to customize configuration.static ModelElement.Builderbuilder(ModelElement instance) Create a new fluent API builder from an existing instance.static ModelElementcreate()Create a new instance with default values.type()Type of this element.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
annotations
Set<Annotation> annotations()All annotations on this element, and inherited from supertype/interface and annotations.- Returns:
- annotations
-
type
TypeInfo type()Type of this element.- Returns:
- type info
-