Package com.sun.xmlsearch.util

Examples of com.sun.xmlsearch.util.PrefixTranslator


    if (!indexDirFile.exists())
      indexDirFile.mkdir();

    xmlIndexBuilder = new XmlIndexBuilder(indexDirName);
    String[] translations = { "vnd.sun.star.help://", "#HLP#" };
    PrefixTranslator translator =
      PrefixTranslator.makePrefixTranslator(translations);
    xmlIndexBuilder.setPrefixTranslator(translator);

    String defaultXSL =
      "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
View Full Code Here


    public QueryHitIterator makeQueryHitIterator() {
  return new QueryHitIteratorImpl();
    }
 
    public void translate() {
  PrefixTranslator translator =
      PrefixTranslator.makePrefixTranslator(_prefixTranslations);
  _size = 0;
  if (_queryHits != null)
      while (_size < _queryHits.length && _queryHits[_size] != null)
    _queryHits[_size++].setDocumentType(_docType);
View Full Code Here

    boolean recurse = "yes".equals(idEl.getAttribute("recurse"));
    Vector files = findXmlFiles(dirName, extension);
    if (files.size() > 0) {
        String[] translations =
      Configuration.processPrefixTranslations(idEl);
        PrefixTranslator translator =
      PrefixTranslator.makePrefixTranslator(translations);
        builder.setPrefixTranslator(translator);
        Enumeration filesEnum = files.elements();
        while (filesEnum.hasMoreElements()) {
      File file = (File)filesEnum.nextElement();
View Full Code Here

    public QueryHitIterator makeQueryHitIterator() {
  return new QueryHitIteratorImpl();
    }
 
    public void translate() {
  PrefixTranslator translator =
      PrefixTranslator.makePrefixTranslator(_prefixTranslations);
  _size = 0;
  if (_queryHits != null)
      while (_size < _queryHits.length && _queryHits[_size] != null)
    _queryHits[_size++].setDocumentType(_docType);
View Full Code Here

    boolean recurse = "yes".equals(idEl.getAttribute("recurse"));
    Vector files = findXmlFiles(dirName, extension);
    if (files.size() > 0) {
        String[] translations =
      Configuration.processPrefixTranslations(idEl);
        PrefixTranslator translator =
      PrefixTranslator.makePrefixTranslator(translations);
        builder.setPrefixTranslator(translator);
        Enumeration filesEnum = files.elements();
        while (filesEnum.hasMoreElements()) {
      File file = (File)filesEnum.nextElement();
View Full Code Here

TOP

Related Classes of com.sun.xmlsearch.util.PrefixTranslator

Copyright © 2018 www.massapicom. 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.