|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.HierarchyCapabilitiesHolder
public class HierarchyCapabilitiesHolder
Gets the capabilities values iterating over the device hierarchy.
It is intended to those applications need to load few capabilities for each Device. Otherwise This class is very inefficient.
hierarchy is defined as ordered list from "generic" to root device.
WURFLModel.getDeviceHierarchy(ModelDevice),
Serialized Form| Constructor Summary | |
|---|---|
HierarchyCapabilitiesHolder(List hierarchy)
Build a HierarchyCapabilitiesHolder from ModelDevice hierarchy. |
|
| Method Summary | |
|---|---|
Map |
getAllCapabilities()
Returns all capability for the held ModelDevice. |
String |
getCapabilityValue(String capabilityName)
Gets capability value iterating over the held ModelDevice hierarchy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HierarchyCapabilitiesHolder(List hierarchy)
hierarchy - A ModelDevice hierarchy.| Method Detail |
|---|
public String getCapabilityValue(String capabilityName)
throws CapabilityNotDefinedException
getCapabilityValue in interface CapabilitiesHoldercapabilityName - The name of capability to get value.
CapabilityNotDefinedException - If the capability capabilityName is not defined in WURFL.public Map getAllCapabilities()
This method is very inefficent. Where the need is to load all
capabilities for one Device, the coiche is
DefaultCapabilitiesHolder
getAllCapabilities in interface CapabilitiesHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||