gate.yam.plugins
Class Google
java.lang.Object
gate.yam.plugins.Google
- All Implemented Interfaces:
- YamPlugin
public class Google
- extends Object
- implements YamPlugin
Google plugin for YAM.
- Author:
- Hamish Cunningham
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Google
public Google()
translate
public String translate(Map m,
AbstractTranslator t,
String target)
- A YAM plugin that allows site search forms (and maybe other stuff).
- Specified by:
translate
in interface YamPlugin
- Parameters:
m
- a map of arguments from the YAM sourcet
- the translator that is converting the YAM documenttarget
- the target output language
- Returns:
- the translation for insertion at the plugin call location
An example call:
%google(siteip=gate.ac.uk, inurl=gate/doc, blurb=Search Google:)