com.free2be.dimensions.device.simple
Class SimpleHardware

java.lang.Object
  extended by com.free2be.dimensions.device.simple.SimpleDeviceComponent
      extended by com.free2be.dimensions.device.simple.SimpleHardware
All Implemented Interfaces:
DeviceComponent, Hardware, java.io.Serializable
Direct Known Subclasses:
HardwareProfile

public class SimpleHardware
extends SimpleDeviceComponent
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
SimpleHardware()
           
 
Method Summary
 java.lang.Boolean getColorCapable()
           
 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.String getPropertyName()
          Each implementation must return a xml representation (name) that best describes it.
 java.lang.Integer getScreenHeightInPixels()
           
 java.lang.Integer getScreenWidthInPixels()
           
 java.lang.String getVendor()
           
 void setColorCapable(java.lang.Boolean colorCapable)
           
 void setModel(java.lang.String model)
           
 void setPreferredType(java.lang.String preferredType)
           
 void setScreenHeightInPixels(java.lang.Integer screenHeightInPixels)
           
 void setScreenWidthInPixels(java.lang.Integer screenWidthInPixels)
           
 void setVendor(java.lang.String vendor)
           
 
Methods inherited from class com.free2be.dimensions.device.simple.SimpleDeviceComponent
assignEndTag, assignNewline, assignStartTag, getAsXml, getAsXml, getSimpleXml, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.free2be.dimensions.device.DeviceComponent
getAsXml
 

Constructor Detail

SimpleHardware

public SimpleHardware()
Method Detail

getVendor

public java.lang.String getVendor()
Specified by:
getVendor in interface Hardware

setVendor

public void setVendor(java.lang.String vendor)

getModel

public java.lang.String getModel()
Description copied from interface: Hardware
The manufacturer's model name.

Specified by:
getModel in interface Hardware

setModel

public void setModel(java.lang.String model)

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

setPreferredType

public void setPreferredType(java.lang.String preferredType)

getScreenHeightInPixels

public java.lang.Integer getScreenHeightInPixels()
Specified by:
getScreenHeightInPixels in interface Hardware

setScreenHeightInPixels

public void setScreenHeightInPixels(java.lang.Integer screenHeightInPixels)

getScreenWidthInPixels

public java.lang.Integer getScreenWidthInPixels()
Specified by:
getScreenWidthInPixels in interface Hardware

setScreenWidthInPixels

public void setScreenWidthInPixels(java.lang.Integer screenWidthInPixels)

getColorCapable

public java.lang.Boolean getColorCapable()

setColorCapable

public void setColorCapable(java.lang.Boolean colorCapable)

getPropertyName

public java.lang.String getPropertyName()
Description copied from class: SimpleDeviceComponent
Each implementation must return a xml representation (name) that best describes it.

Specified by:
getPropertyName in class SimpleDeviceComponent