Package at.ofai.gate.appdoc.converters

Examples of at.ofai.gate.appdoc.converters.Converter.convert()


    String text = (String) args.get(0);
    String fromFormat = (String) args.get(1);
    String toFormat = (String) args.get(2);
    //System.out.println("ConvertString.exec called with "+fromFormat+"/"+toFormat+">>>"+text+"<<<");
    Converter converter = ConverterFactory.getConverter(fromFormat, toFormat);
    String converted = converter.convert(text);
    return new freemarker.template.SimpleScalar(converted);
  }
}
View Full Code Here


    }

    // convert the docstrings according to the required format conversion!
    Converter converter = ConverterFactory.getConverter(fromFormat, toFormat);
    for(Map<String,String> entry : listOfJapeDocs) {
      entry.put("docstring",converter.convert(entry.get("docstring")));
    }

    return new CollectionModel(listOfJapeDocs,new DefaultObjectWrapper());
  }
}
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.