Page MenuHomeSealhub

container-argument.ts
No OneTemporary

container-argument.ts

import { JDDContext } from "../jdd-context.js";
import { ComponentArgument } from "./component-argument.js";
export abstract class ContainerArgument<
P,
S = P,
R = P
> extends ComponentArgument<P, S, R> {
abstract processAllSubarguments(
context: JDDContext,
values: unknown,
processing_function: (
argument: ComponentArgument<unknown>,
value: unknown
) => Promise<unknown>
): unknown;
async receivedToParsed(context: JDDContext, value: R): Promise<P> {
return this.processAllSubarguments(
context,
value,
(argument: ComponentArgument<unknown>, value: unknown) => {
return argument.receivedToParsed(context, value);
}
) as P;
}
async parsedToStorage(context: JDDContext, value: P): Promise<S> {
return this.processAllSubarguments(
context,
value,
(argument: ComponentArgument<unknown>, value: unknown) => {
return argument.parsedToStorage(context, value);
}
) as S;
}
async storageToParsed(context: JDDContext, value: S): Promise<P> {
return this.processAllSubarguments(
context,
value,
(argument: ComponentArgument<unknown>, value: unknown) => {
return argument.storageToParsed(context, value);
}
) as P;
}
}

File Metadata

Mime Type
text/x-java
Expires
Wed, May 7, 19:41 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
625293
Default Alt Text
container-argument.ts (1 KB)

Event Timeline