Examples of fragments()


Examples of org.elasticsearch.search.highlight.HighlightField.fragments()

    public void setHighlightRanges(Map<String, HighlightField> highlightFields) {
        if (!highlightFields.isEmpty()) {
            highlightRanges = ArrayListMultimap.create();
            for (Map.Entry<String, HighlightField> hlEntry : highlightFields.entrySet()) {
                final HighlightField highlight = hlEntry.getValue();
                final String s = highlight.fragments()[0].toString();

                int pos = 0;
                int cutChars = 0;
                while (true) {
                    int startIdx = s.indexOf("<em>", pos);
View Full Code Here

Examples of org.jnode.plugin.model.PluginDescriptorModel.fragments()

            final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME);
            PluginDescriptorModel pdm =
                    (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(pluginId);
            if (pdm != null) {
                isvalid = false;
                for (PluginDescriptorModel fdm : pdm.fragments()) {
                    if (fdm.getId().equals(fragmentId)) {
                        buffer = fdm.getJarFile().getBuffer();
                        isvalid = buffer != null;
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.