|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.DefaultDevice
public class DefaultDevice
This is a default Device implementation.
It uses a CapabilitiesHolder to retrieve capabilities values and MarkupResolver to resolve MarkUp.
| Constructor Summary | |
|---|---|
DefaultDevice(ModelDevice root,
CapabilitiesHolder capabilitiesHolder,
MarkupResolver markupResolver)
Build a Device. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
It assumes two DefaultDevices with equals root ModelDevices are equals. |
Map |
getCapabilities()
Returns a device's capabilities values by name Map. |
String |
getCapability(String name)
Return a device's capability value. |
String |
getId()
Return the WURFL id of this device |
MarkUp |
getMarkUp()
Get the markUp handled by this device. |
String |
getUserAgent()
Return the user-agent string for this device as defined in WURFL. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDevice(ModelDevice root,
CapabilitiesHolder capabilitiesHolder,
MarkupResolver markupResolver)
root - The ModelDevice instance root of this Device.capabilitiesHolder - The CapabilitiesHolder used to get capabilities values.markupResolver - The MarkupResolver used to obtain MarkUp for this Device.| Method Detail |
|---|
public String getId()
getId in interface Devicepublic String getUserAgent()
getUserAgent in interface Device
public String getCapability(String name)
throws CapabilityNotDefinedException
getCapability in interface Devicename - The identifier of capability to get.
CapabilityNotDefinedException - If this device do not define the given capability.public Map getCapabilities()
getCapabilities in interface Devicepublic MarkUp getMarkUp()
getMarkUp in interface Devicepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||