How to use the @accordproject/concerto-core.ModelUtil.getNamespace function in @accordproject/concerto-core

To help you get started, we’ve selected a few @accordproject/concerto-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github accordproject / concerto / packages / concerto-tools / lib / codegen / fromcto / xmlschema / xmlschemavisitor.js View on Github external
toXsType(type) {
        switch(type) {
        case 'DateTime':
            return 'xs:dateTime';
        case 'Boolean':
            return 'xs:boolean';
        case 'String':
            return 'xs:string';
        case 'Double':
            return 'xs:double';
        case 'Long':
            return 'xs:long';
        case 'Integer':
            return 'xs:integer';
        default:
            return `${ModelUtil.getNamespace(type)}:${ModelUtil.getShortName(type)}`;
        }
    }
}