org.swrlapi.ui.view.queries.SQWRLQuerySelector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swrlapi Show documentation
Show all versions of swrlapi Show documentation
Java API for working with SWRL rules and SQWRL queries
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