net.sourceforge.wurfl.wurflapi
Class WurflDevice

java.lang.Object
  |
  +--net.sourceforge.wurfl.wurflapi.WurflDevice

public class WurflDevice
extends java.lang.Object

Author:
Luca Passani, passani at eunet dot no

I have been puzzled all the way about the necessity of this class. Basically, the WurflDevice class adds no information to what is contained in a nu.xom.Element that represents a device after the Wurfl.xml file has been parsed. On the other hand, I want to hide all dependencies on nu.xom.* for the user of the library, so I guess I have no other chance but define my own class to store info about a device element.
If you have ideas or suggestions, you are welcome to drop me an email.

Constructor Summary
WurflDevice(nu.xom.Element xom_elem)
           
 
Method Summary
 boolean getActual_device_root()
          Given a WurflDevice, retrieve its actual_device_root
 java.lang.String getBrandName()
          Given a WurflDevice, retrieve its brand_name
 java.lang.String getFallBack()
          Given a WurflDevice, retrieve its fall_back
 java.lang.String getId()
          Given a WurflDevice, retrieve its ID
 java.lang.String getModelName()
          Given a WurflDevice, retrieve its model_name
 java.lang.String getUserAgent()
          Given a WurflDevice, retrieve its user_agent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WurflDevice

public WurflDevice(nu.xom.Element xom_elem)
Method Detail

getId

public java.lang.String getId()
Given a WurflDevice, retrieve its ID


getFallBack

public java.lang.String getFallBack()
Given a WurflDevice, retrieve its fall_back


getUserAgent

public java.lang.String getUserAgent()
Given a WurflDevice, retrieve its user_agent


getActual_device_root

public boolean getActual_device_root()
Given a WurflDevice, retrieve its actual_device_root


getBrandName

public java.lang.String getBrandName()
Given a WurflDevice, retrieve its brand_name


getModelName

public java.lang.String getModelName()
Given a WurflDevice, retrieve its model_name



Copyright © 2003,2004 Luca Passani.