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 class
Fluent API builder forModelElement
.static class
ModelElement.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.Builder
builder()
Create a new fluent API builder to customize configuration.static ModelElement.Builder
builder
(ModelElement instance) Create a new fluent API builder from an existing instance.static ModelElement
create()
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
-