Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)}`;
}
}
}