Gets the analyzer.

@return the analyzer
@throws EFapsException on error
540615
public static Analyzer getAnalyzer()
        throws EFapsException
    {
        IAnalyzerProvider provider = null;
        if (EFapsSystemConfiguration.get().containsAttributeValue(KernelSettings.INDEXANALYZERPROVCLASS)) {
            final String clazzname = EFapsSystemConfiguration.get().getAttributeValue(
                            KernelSettings.INDEXANALYZERPROVCLASS);
            try {
                final Class<?> clazz = Class.forName(clazzname, false, EFapsClassLoader.getInstance());
                provider = (IAnalyzerProvider) clazz.newInstance();
            } catch (final ClassNotFoundException | InstantiationException | IllegalAccessException e) {
                throw new EFapsException(Index.class, "Could not instanciate IAnalyzerProvider", e);
            }
        } else {
            provider = new IAnalyzerProvider()
            {
                @Override
                public Analyzer getAnalyzer()
                {
                    return new StandardAnalyzer(SpanishAnalyzer.getDefaultStopSet());
                }
            };
        }
        return provider.getAnalyzer();
    }
719744
@SuppressWarnings("unchecked")
    public <T> T get(final int _idx)
        throws EFapsException
    {
        initialize(true);
        Object ret = null;
        final int idx = _idx - 1;
        if (this.selection.getSelects().size() > idx) {
            final Select select = this.selection.getSelects().get(idx);
            ret = get(select);
        }
        return (T) ret;
    }
65630
public Discriminator getDiscriminator() {
        if (tc.isEntryEnabled())
            SibTr.entry(this, tc, "getDiscriminator");
        if (tc.isEntryEnabled())
            SibTr.exit(this, tc, "getDiscriminator", discriminator);
        return discriminator;
    }
1266184
public function get_analyser($options = array()) {
        if ($this->analyser !== null) {
            return $this->analyser;
        }

        $this->init_analyser($options);

        return $this->analyser;
    }
1022933
public static Quartz getQuartz()
        throws EFapsException
    {
        if (Quartz.QUARTZ == null) {
            Quartz.initialize();
        }
        return Quartz.QUARTZ;
    }
221172
private function getFileAnalyzer(ProjectAnalyzer $project_analyzer, $file_path, array $filetype_analyzers)
    {
        $extension = (string) (pathinfo($file_path)['extension'] ?? '');

        $file_name = $this->config->shortenFileName($file_path);

        if (isset($filetype_analyzers[$extension])) {
            $file_analyzer = new $filetype_analyzers[$extension]($project_analyzer, $file_path, $file_name);
        } else {
            $file_analyzer = new FileAnalyzer($project_analyzer, $file_path, $file_name);
        }

        if ($this->debug_output) {
            echo 'Getting ' . $file_path . "\n";
        }

        return $file_analyzer;
    }
518544
public ConnectionResource getConnectionResource()
        throws EFapsException
    {
        try {
            if (this.connectionResource == null) {
                this.connectionResource = new ConnectionResource(Context.DATASOURCE.getConnection());
            }
        } catch (final SQLException e) {
            throw new EFapsException(getClass(), "getConnectionResource.SQLException", e);
        }
        return this.connectionResource;
    }
343021
@SuppressWarnings("unchecked")
    public <T> T getAttribute(final Attribute _attribute)
        throws EFapsException
    {
        return (T) getAttribute(_attribute.getName());
    }
636619
public static <A extends Analyzer<?>> AnalyzerDescriptor<A> ofAnalyzer(final Class<A> analyzerClass) {
        return new AnnotationBasedAnalyzerComponentDescriptor<>(analyzerClass);
    }
1371754
public DiagnosticFileDumper getDiagnosticFileDumper() {

        if (diagnosticFileDumper != null) {
            return diagnosticFileDumper;
        }

        String dd = sdkProperties.getProperty(DIAGNOTISTIC_FILE_DIRECTORY);

        if (dd != null) {

            diagnosticFileDumper = DiagnosticFileDumper.configInstance(new File(dd));

        }

        return diagnosticFileDumper;
    }
1174427
public Extractor getExtractor() {
    try {
      this.rawSourceExtractor = getSource().getExtractor(this.taskState);
      boolean throttlingEnabled = this.taskState.getPropAsBoolean(ConfigurationKeys.EXTRACT_LIMIT_ENABLED_KEY,
          ConfigurationKeys.DEFAULT_EXTRACT_LIMIT_ENABLED);
      if (throttlingEnabled) {
        Limiter limiter = DefaultLimiterFactory.newLimiter(this.taskState);
        if (!(limiter instanceof NonRefillableLimiter)) {
          throw new IllegalArgumentException("The Limiter used with an Extractor should be an instance of "
              + NonRefillableLimiter.class.getSimpleName());
        }
        return new LimitingExtractorDecorator<>(this.rawSourceExtractor, limiter, this.taskState);
      }
      return this.rawSourceExtractor;
    } catch (IOException ioe) {
      throw new RuntimeException(ioe);
    }
  }
880798
public String getMsgPhrase(final SelectBuilder _selectBldr,
                               final CIMsgPhrase _msgPhrase)
        throws EFapsException
    {
        return getMsgPhrase(_selectBldr, _msgPhrase.getMsgPhrase());
    }
543674
public MsgPhrase getParent()
        throws EFapsException
    {
        final MsgPhrase ret;
        if (hasParent()) {
            ret = MsgPhrase.get(getParentId());
        } else {
            ret = null;
        }
        return ret;
    }
2914
@SuppressWarnings("unchecked")
    public <T> T getSelect(final String _selectStmt)
        throws EFapsException
    {
        final OneSelect oneselect = this.selectStmt2OneSelect.get(_selectStmt);
        return oneselect == null ? null : (T) oneselect.getObject();
    }
1138585
public String getMsgPhrase(final SelectBuilder _selectBldr,
                               final UUID _msgPhrase)
        throws EFapsException
    {
        return getMsgPhrase(_selectBldr, MsgPhrase.get(_msgPhrase));
    }
643299
public static AnalysisEngine defaultAnalysisEngine() {
        try {
            if (defaultAnalysisEngine == null)

                defaultAnalysisEngine = AnalysisEngineFactory.createEngine(
                                AnalysisEngineFactory.createEngineDescription(SentenceAnnotator.getDescription(),
                                                TokenizerAnnotator.getDescription()));

            return defaultAnalysisEngine;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
84768
public String getNote()
        throws EFapsException
    {
        String ret = "";
        final QueryBuilder queryBldr = new QueryBuilder(CIAdminUser.Abstract);
        queryBldr.addWhereAttrEqValue(CIAdminUser.Abstract.ID, getId());
        final MultiPrintQuery multi = queryBldr.getPrint();
        multi.addAttribute(CIAdminUser.Abstract.Note);
        if (multi.execute()) {
            multi.next();
            ret = multi.getAttribute(CIAdminUser.Abstract.Note);
        }
        return ret;
    }