// holds the value converters
const behavior = new Map();



/**
 * keeps track of the attributes, so I know when using the AST
 *
 */
export class ContainerBehavior {



    /**
     * register new valueCOnverter
     *
     */
    public static regBehavior(_class: any, name: string) {
        if (!behavior.has(name)) {
            behavior.set(name, _class);
        }
    }



    /**
     * returns converter function if found
     *
     */
    public static findBehavior(name: string): any {
        if (behavior.has(name)) {
            return behavior.get(name);
        } else {
            return null;
        }
    }



}
