tools/kevoree-kevscript/lib/util/model-helper.js
function getFQN(tdef) {
	const hasPreRelease = tdef.deployUnits.array.some((du) => {
		return semver.prerelease(du.version) !== null;
	});

	const duTag = hasPreRelease ? '/LATEST' : '';

	let fqn = tdef.name + '/' + tdef.version + duTag;

	function walk(pkg) {
		if (pkg.eContainer()) {
			fqn = pkg.name + '.' + fqn;
			walk(pkg.eContainer());
		}
	}

	walk(tdef.eContainer());

	return fqn;
}
function getFQN(tdef) {
	const hasPreRelease = tdef.deployUnits.array.some((du) => {
		return semver.prerelease(du.version) !== null;
	});

	const duTag = hasPreRelease ? '/LATEST' : '';

	let fqn = tdef.name + '/' + tdef.version + duTag;

	function walk(pkg) {
		if (pkg.eContainer()) {
			fqn = pkg.name + '.' + fqn;
			walk(pkg.eContainer());
		}
	}

	walk(tdef.eContainer());

	return fqn;
}
function getFQN ( tdef ) { const hasPreRelease = tdef . deployUnits . array . some ( ( du ) => { return semver . prerelease ( du . version ) !== null ; } ) ; const duTag = hasPreRelease ? '/LATEST' : '' ; let fqn = tdef . name + '/' + tdef . version + duTag ; function walk ( pkg ) { if ( pkg . eContainer ( ) ) { fqn = pkg . name + '.' + fqn ; walk ( pkg . eContainer ( ) ) ; } } walk ( tdef . eContainer ( ) ) ; return fqn ; }
Returns the FQN of the given TypeDefinition
@param tdef
@returns {String}
Returns the FQN of the given TypeDefinition