UNPKG

@yellicode/elements

Version:

The meta model API for Yellicode - an extensible code generator.

42 lines (41 loc) 1.9 kB
/** * This code was generated by a tool. * * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. */ import * as elements from './interfaces'; export declare class ElementJsonTransformer { /** * Creates a persistable string representation of the specified VisibilityKind value. * @param {elements.VisibilityKind} value The value being stringified. */ private static stringifyVisibilityKind; /** * Creates a persistable string representation of the specified ParameterDirectionKind value. * @param {elements.ParameterDirectionKind} value The value being stringified. */ private static stringifyParameterDirectionKind; /** * Creates a persistable string representation of the specified ElementType value. * @param {elements.ElementType} value The value being stringified. */ private static stringifyElementType; /** * Creates a persistable string representation of the specified DocumentLocationKind value. * @param {elements.DocumentLocationKind} value The value being stringified. */ private static stringifyDocumentLocationKind; /** * Creates a persistable string representation of the specified AggregationKind value. * @param {elements.AggregationKind} value The value being stringified. */ private static stringifyAggregationKind; /** * A custom replacer function that is used as a replacer callback using JSON.stringify. * @param {elements.Element} element The model element in which the key was found. * @param {any} key The key being stringified. * @param {any} value The value being stringified. * @param {boolean} valueIsArray True if the value being stringified is an array. */ static replace(element: elements.Element, key: any, value: any, valueIsArray: boolean): any; }