blob: d18329e01644de54f7d87615c666d1aaea378e8c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2008 IBM Corporation and Others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Masahide WASHIZAWA - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.visualization.internal.engines.voicebrowser;
import org.w3c.dom.Element;
public class StaticDefaultRenderer implements IElementRenderer {
/**
* @see org.eclipse.actf.visualization.internal.engines.voicebrowser.IElementRenderer#getPacketCollectionIn(Element, Context, MessageCollection)
*/
public PacketCollection getPacketCollectionIn(
Element element,
Context ctx,
String url,
MessageCollection mc) {
String result = OutLoud.buildResultString(mc, url, element, null, null);
if (result != null)
result = result.trim();
if (result != null && result.length() > 0)
return new PacketCollection(new Packet(element, result, ctx, true));
else
return null;
}
/**
* @see org.eclipse.actf.visualization.internal.engines.voicebrowser.IElementRenderer#getPacketCollectionOut(Element, Context, MessageCollection)
*/
public PacketCollection getPacketCollectionOut(
Element element,
Context ctx,
String url,
MessageCollection mc) {
return null;
}
/**
* @see org.eclipse.actf.visualization.internal.engines.voicebrowser.IElementRenderer#setContextIn(Context)
*/
public void setContextIn(Element element, Context curContext) {
}
/**
* @see org.eclipse.actf.visualization.internal.engines.voicebrowser.IElementRenderer#setContextOut(Context)
*/
public void setContextOut(Element element, Context curContext) {
}
}