Class CollectionBuilderBase<TEndpoint>
- Namespace
- TypedRest.CodeGeneration.Jvm.Endpoints
- Assembly
- TypedRest.CodeGeneration.Jvm.dll
Common base class for builders for CollectionEndpoint and derived types.
public abstract class CollectionBuilderBase<TEndpoint> : BuilderBase<TEndpoint>, IBuilder<TEndpoint>, IBuilder where TEndpoint : CollectionEndpoint
Type Parameters
TEndpointThe type of CollectionEndpoint to generate code for.
- Inheritance
-
objectBuilderBase<TEndpoint>CollectionBuilderBase<TEndpoint>
- Implements
-
IBuilder<TEndpoint>
- Derived
- Inherited Members
Properties
GenericTypeName
The name of the TypedRest type taking a factory for element endpoints, e.g. GenericCollectionEndpoint.
protected abstract string GenericTypeName { get; }
Property Value
Package
The package the two types live in.
protected virtual JvmPackage Package { get; }
Property Value
TypeName
The name of the TypedRest type creating its element endpoints itself, e.g. CollectionEndpoint.
protected abstract string TypeName { get; }
Property Value
Methods
GetBase(string, TEndpoint, IEndpointGenerator)
Returns the TypedRest type the endpoint derives from, any additional types generated along the way, and any constructor arguments beyond the referrer and the relative URI.
protected override (JvmIdentifier baseType, IEnumerable<IJvmType> types, IEnumerable<JvmExpression> extraArguments) GetBase(string key, TEndpoint endpoint, IEndpointGenerator generator)
Parameters
keystringendpointTEndpointgeneratorIEndpointGenerator
Returns
GetBaseType(TEndpoint, IEndpointGenerator)
Returns the TypedRest implementation class the endpoint derives from.
protected override JvmIdentifier GetBaseType(TEndpoint endpoint, IEndpointGenerator generator)
Parameters
endpointTEndpointgeneratorIEndpointGenerator