lib/helpers/class_helper.js
function getClassNames(classes) {
  if (!classes) {
    throw new BuildException(
      exceptions.NullPointer, 'The classes object cannot be nil.');
  }
  const object = {};
  Object.keys(classes).forEach((classId) => {
    object[classId] = classes[classId].name;
  });
  return object;
}
function getClassNames(classes) {
  if (!classes) {
    throw new BuildException(
      exceptions.NullPointer, 'The classes object cannot be nil.');
  }
  const object = {};
  Object.keys(classes).forEach((classId) => {
    object[classId] = classes[classId].name;
  });
  return object;
}
function getClassNames ( classes ) { if ( ! classes ) { throw new BuildException ( exceptions . NullPointer , 'The classes object cannot be nil.' ) ; } const object = { } ; Object . keys ( classes ) . forEach ( ( classId ) => { object [ classId ] = classes [ classId ] . name ; } ) ; return object ; }
Gets the class' names.
@param classes the classes
@returns {Object} an object containing all the class' names by their id.
@throws {NullPointerException} if the passed object is nil.
Gets the class names .