All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swrlapi.ui.view.queries.SQWRLQuerySelector Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package org.swrlapi.ui.view.queries;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.swrlapi.ui.view.SWRLRulesTableView;

import java.util.Optional;

/**
 * Selector used to communicate the selected SQWRL query between views.
 *
 * @see org.swrlapi.ui.view.SWRLRulesTableView
 * @see org.swrlapi.ui.view.queries.SQWRLQueryExecutionView
 */
class SQWRLQuerySelector
{
  @NonNull private final SWRLRulesTableView swrlRulesTableView;

  public SQWRLQuerySelector(@NonNull SWRLRulesTableView swrlRulesTableView)
  {
    this.swrlRulesTableView = swrlRulesTableView;
  }

  public Optional<@NonNull String> getSelectedQueryName()
  {
    return this.swrlRulesTableView.getSelectedSWRLRuleName();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy