net.sourceforge.wurfl.core
Class DefaultMarkupResolver

java.lang.Object
  extended by net.sourceforge.wurfl.core.DefaultMarkupResolver
All Implemented Interfaces:
Serializable, MarkupResolver

public class DefaultMarkupResolver
extends Object
implements MarkupResolver, Serializable

Default implementation of MarkupResolver.

Version:
$Id: DefaultMarkupResolver.java 432 2010-05-06 12:12:53Z filippo.deluca $
Author:
Fantayeneh Asres Gizaw, Filippo De Luca
See Also:
Serialized Form

Constructor Summary
DefaultMarkupResolver()
           
 
Method Summary
 MarkUp getMarkupForDevice(Device device)
          Resolve the MarkUp for the given Device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMarkupResolver

public DefaultMarkupResolver()
Method Detail

getMarkupForDevice

public MarkUp getMarkupForDevice(Device device)
Resolve the MarkUp for the given Device.

It returns MarkUp.CHTML for CHTML(iMode) devices, MarkUp.WML for WML devices, MarkUp.XHTML_SIMPLE for whose devices having simple xhtml support and MarkUp.XHTML_ADVANCED for the advanced devices.

Specified by:
getMarkupForDevice in interface MarkupResolver
Parameters:
device - The Device to resolve the MarkUp against.
Returns:
The MarkUp resolved for the given Device.


Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.