com.free2be.dimensions.device.profile
Class HardwareProfile
java.lang.Object
com.free2be.dimensions.device.simple.SimpleDeviceComponent
com.free2be.dimensions.device.simple.SimpleHardware
com.free2be.dimensions.device.profile.HardwareProfile
- All Implemented Interfaces:
- DeviceComponent, Hardware, java.io.Serializable
public class HardwareProfile
- extends SimpleHardware
- implements Hardware
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getAsXml()
Ideally this will always return the CC/PP representation of this device, but until then:
If derived from a valid CC/PP (like UAProf) document then that document will be returned as formatted string. |
java.lang.String |
getModel()
The manufacturer's model name. |
java.lang.String |
getPreferredType()
Describes in a general sense the type of device the caller is using. |
java.lang.Integer |
getScreenHeightInPixels()
|
java.lang.String |
getScreenSize()
|
java.lang.Integer |
getScreenWidthInPixels()
|
java.lang.String |
getVendor()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HardwareProfile
public HardwareProfile(org.dom4j.Node hardwareNode)
getVendor
public java.lang.String getVendor()
- Specified by:
getVendor
in interface Hardware
- Overrides:
getVendor
in class SimpleHardware
getModel
public java.lang.String getModel()
- The manufacturer's model name.
- Specified by:
getModel
in interface Hardware
- Overrides:
getModel
in class SimpleHardware
getPreferredType
public java.lang.String getPreferredType()
- Description copied from interface:
Hardware
- Describes in a general sense the type of device the caller is using. Enumerated at the top. This is the preferred type since some devices may represent
multiple types (such as a pda phone). The system should define an order of preferred types and each call may also prefer one type over another.
- Specified by:
getPreferredType
in interface Hardware
- Overrides:
getPreferredType
in class SimpleHardware
getScreenHeightInPixels
public java.lang.Integer getScreenHeightInPixels()
- Specified by:
getScreenHeightInPixels
in interface Hardware
- Overrides:
getScreenHeightInPixels
in class SimpleHardware
getScreenWidthInPixels
public java.lang.Integer getScreenWidthInPixels()
- Specified by:
getScreenWidthInPixels
in interface Hardware
- Overrides:
getScreenWidthInPixels
in class SimpleHardware
getScreenSize
public java.lang.String getScreenSize()
getAsXml
public java.lang.String getAsXml()
- Description copied from interface:
DeviceComponent
- Ideally this will always return the CC/PP representation of this device, but until then:
-
If derived from a valid CC/PP (like UAProf) document then that document will be returned as formatted string.
-
If not derived from a valid document, this will return simple xml from a bean crawler until a bean/xml mapper
is used to display the device as valid CC/PP document.
- Specified by:
getAsXml
in interface DeviceComponent
- Overrides:
getAsXml
in class SimpleDeviceComponent