lib/parser/document_parser.js
function parseFromConfigurationObject(configuration) {
  if (!configuration.document) {
    throw new Error('The parsed JDL content must be passed.');
  }
  init(configuration);
  fillApplications();
  fillDeployments();
  fillEnums();
  fillClassesAndFields();
  fillAssociations();
  fillOptions();
  return jdlObject;
}
function parseFromConfigurationObject(configuration) {
  if (!configuration.document) {
    throw new Error('The parsed JDL content must be passed.');
  }
  init(configuration);
  fillApplications();
  fillDeployments();
  fillEnums();
  fillClassesAndFields();
  fillAssociations();
  fillOptions();
  return jdlObject;
}
function parseFromConfigurationObject ( configuration ) { if ( ! configuration . document ) { throw new Error ( 'The parsed JDL content must be passed.' ) ; } init ( configuration ) ; fillApplications ( ) ; fillDeployments ( ) ; fillEnums ( ) ; fillClassesAndFields ( ) ; fillAssociations ( ) ; fillOptions ( ) ; return jdlObject ; }
Converts the intermediate document to a JDLObject from a configuration object.
@param configuration The configuration object, keys:
- document
- applicationType
- applicationName
- generatorVersion
Converts the intermediate document to a JDLObject from a configuration object .