function getConfigValues()

in src/launchWizard/script.js [43:120]


function getConfigValues() {
  var configSelectionBox = document.getElementById('configSelected')
  var configSelectedValue =
    configSelectionBox.options[configSelectionBox.selectedIndex].value
  const name =
    configSelectedValue === 'New Config'
      ? document.getElementById('name').value
      : configSelectedValue
  const data = document.getElementById('data').value
  const debugServer = parseInt(document.getElementById('debugServer').value)
  const infosetFormat = document.getElementById('infosetFormat').value
  const infosetOutputFilePath = document.getElementById(
    'infosetOutputFilePath'
  ).value
  const infosetOutputType = document.getElementById('infosetOutputType').value
  const tdmlAction = document.getElementById('tdmlAction').value
  const tdmlName = document.getElementById('tdmlName').value
  const tdmlDescription = document.getElementById('tdmlDescription').value
  const tdmlPath = document.getElementById('tdmlPath').value
  const openDataEditor = document.getElementById('openDataEditor').checked
  const openInfosetDiffView = document.getElementById(
    'openInfosetDiffView'
  ).checked
  const openInfosetView = document.getElementById('openInfosetView').checked
  const schema = document.getElementById('schema').value
  const stopOnEntry = document.getElementById('stopOnEntry').checked
  const trace = document.getElementById('trace').checked
  const useExistingServer = document.getElementById('useExistingServer').checked
  const dataEditorPort = parseInt(
    document.getElementById('dataEditorPort').value
  )
  const dataEditorLogFile = document.getElementById('dataEditorLogFile').value
  const dataEditorLogLevel = document.getElementById('dataEditorLogLevel').value
  const dfdlDebuggerLogFile = document.getElementById(
    'dfdlDebuggerLogFile'
  ).value
  const dfdlDebuggerLogLevel = document.getElementById(
    'dfdlDebuggerLogLevel'
  ).value
  const rootName =
    document.getElementById('rootName').value == 'null'
      ? null
      : document.getElementById('rootName').value
  const rootNamespace =
    document.getElementById('rootNamespace').value == 'null'
      ? null
      : document.getElementById('rootNamespace').value

  const daffodilDebugClasspath = getDaffodilDebugClasspathArray()

  return {
    name,
    data,
    debugServer,
    infosetFormat,
    infosetOutputFilePath,
    infosetOutputType,
    tdmlAction,
    tdmlName,
    tdmlDescription,
    tdmlPath,
    openDataEditor,
    openInfosetDiffView,
    openInfosetView,
    schema,
    stopOnEntry,
    trace,
    useExistingServer,
    dataEditorPort,
    dataEditorLogFile,
    dataEditorLogLevel,
    dfdlDebuggerLogFile,
    dfdlDebuggerLogLevel,
    daffodilDebugClasspath,
    rootName,
    rootNamespace,
  }
}