Table of Contents

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

TEndpoint

The type of CollectionEndpoint to generate code for.

Inheritance
object
BuilderBase<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

string

Package

The package the two types live in.

protected virtual JvmPackage Package { get; }

Property Value

JvmPackage

TypeName

The name of the TypedRest type creating its element endpoints itself, e.g. CollectionEndpoint.

protected abstract string TypeName { get; }

Property Value

string

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

key string
endpoint TEndpoint
generator IEndpointGenerator

Returns

(JvmIdentifier baseType, IEnumerable<IJvmType> types, IEnumerable<JvmExpression> extraArguments)

GetBaseType(TEndpoint, IEndpointGenerator)

Returns the TypedRest implementation class the endpoint derives from.

protected override JvmIdentifier GetBaseType(TEndpoint endpoint, IEndpointGenerator generator)

Parameters

endpoint TEndpoint
generator IEndpointGenerator

Returns

JvmIdentifier