com.free2be.dimensions.device.profile
Class HardwareProfile

java.lang.Object
  extended by com.free2be.dimensions.device.simple.SimpleDeviceComponent
      extended by com.free2be.dimensions.device.simple.SimpleHardware
          extended by 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

Field Summary
 
Fields inherited from class com.free2be.dimensions.device.simple.SimpleDeviceComponent
END_TAG_INDICATOR, GREATER_THAN, LESS_THAN
 
Fields inherited from interface com.free2be.dimensions.device.Hardware
PC_TYPE, PDA_TYPE, PHONE_TYPE
 
Constructor Summary
HardwareProfile(org.dom4j.Node hardwareNode)
           
 
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 com.free2be.dimensions.device.simple.SimpleHardware
getColorCapable, getPropertyName, setColorCapable, setModel, setPreferredType, setScreenHeightInPixels, setScreenWidthInPixels, setVendor
 
Methods inherited from class com.free2be.dimensions.device.simple.SimpleDeviceComponent
assignEndTag, assignNewline, assignStartTag, getAsXml, getSimpleXml, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HardwareProfile

public HardwareProfile(org.dom4j.Node hardwareNode)
Method Detail

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:

Specified by:
getAsXml in interface DeviceComponent
Overrides:
getAsXml in class SimpleDeviceComponent