net.sourceforge.wurfl.core
Class AbstractDeviceProvider

java.lang.Object
  extended by net.sourceforge.wurfl.core.AbstractDeviceProvider
All Implemented Interfaces:
DeviceProvider
Direct Known Subclasses:
DefaultDeviceProvider

public abstract class AbstractDeviceProvider
extends Object
implements DeviceProvider

Abstract implementation of DeviceProvider.

Version:
$Id: AbstractDeviceProvider.java 934 2012-03-27 13:34:26Z fulvio.crivellaro $

Field Summary
protected  WURFLModel model
          The model used as backend
 
Constructor Summary
AbstractDeviceProvider(WURFLModel model)
          Build DeviceProvider by WURFLModel.
 
Method Summary
protected  ModelDeviceWithAncestorId getModelDeviceWithAncestorId(String deviceId)
          This method get a ModelDevice from WURFLModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.wurfl.core.DeviceProvider
getDevice
 

Field Detail

model

protected final WURFLModel model
The model used as backend

Constructor Detail

AbstractDeviceProvider

public AbstractDeviceProvider(WURFLModel model)
Build DeviceProvider by WURFLModel.

Parameters:
model - The wurflModel used as backend.
Method Detail

getModelDeviceWithAncestorId

protected final ModelDeviceWithAncestorId getModelDeviceWithAncestorId(String deviceId)
                                                                throws DeviceNotDefinedException
This method get a ModelDevice from WURFLModel.

Parameters:
deviceId - Th requested device identifier.
Returns:
a ModelDevice identified by deviceId.
Throws:
DeviceNotDefinedException


Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.