com.free2be.dimensions.device.simple
Class SimpleDevice

java.lang.Object
  extended by com.free2be.dimensions.device.simple.SimpleDeviceComponent
      extended by com.free2be.dimensions.device.simple.SimpleDevice
All Implemented Interfaces:
Device, DeviceComponent, java.io.Serializable
Direct Known Subclasses:
DeviceProfile

public class SimpleDevice
extends SimpleDeviceComponent
implements Device

Mimics the behavior of Locale as if contentType were Language and deviceType were Country. Variant is not yet utlized. Device type and content type shall never be null...empty string will be returned if no content type

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.Device
HTML_CONTENT_TYPE, INTERNET_EXPLORER_BROWSER, MIDP, NETSCAPE_BROWSER, PC, PDA, PHONE, SOAP_CONTENT_TYPE, VXML_CONTENT_TYPE, WEB_SERVICES, WML_CONTENT_TYPE, XML_CONTENT_TYPE
 
Constructor Summary
SimpleDevice()
           
 
Method Summary
 java.lang.String getContentType()
          Indicates the preferred content type as defined in the factory.
 java.lang.String getDeviceSubtype()
          Sitting here until it can be determined where this will always private String deviceSubtype = ""; /** The next level of detail beyond device type.
 java.lang.String getDeviceType()
          Indicates the preferred content type as defined in the factory.
 Hardware getHardware()
           
 java.lang.String getModel()
          The model of the device made by the vendor. i.e. this is intended to be used with a series like Treo from Handspring.
 Network getNetwork()
           
 java.lang.String getPropertyName()
          Each implementation must return a xml representation (name) that best describes it.
 Software getSoftware()
           
 java.lang.String getVendor()
          The manufacturer of the client device.
 void setContentType(java.lang.String contentType)
           
 void setDeviceSubtype(java.lang.String deviceSubtype)
           
 void setDeviceType(java.lang.String deviceType)
           
 void setModel(java.lang.String model)
           
 void setVendor(java.lang.String vendor)
           
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

SimpleDevice

public SimpleDevice()
Method Detail

getContentType

public java.lang.String getContentType()
Description copied from interface: Device
Indicates the preferred content type as defined in the factory. This will return only the subtype of the content mime type (i.e. text/html will return html). All content types is also available from Browser.

Specified by:
getContentType in interface Device
Returns:
String subtype of mime type or empty string if not known...null is never o.k.
See Also:
Browser

getDeviceType

public java.lang.String getDeviceType()
Description copied from interface: Device
Indicates the preferred content type as defined in the factory. This will return only the subtype of the content mime type (i.e. text/html will return html). All content types is also available from Browser.

Specified by:
getDeviceType in interface Device
Returns:
String enumerated device types or empty string if not known...null is never returned.
See Also:
Hardware

getSoftware

public Software getSoftware()
Specified by:
getSoftware in interface Device

getHardware

public Hardware getHardware()
Specified by:
getHardware in interface Device

getNetwork

public Network getNetwork()
Specified by:
getNetwork in interface Device

setContentType

public void setContentType(java.lang.String contentType)

setDeviceType

public void setDeviceType(java.lang.String deviceType)

setDeviceSubtype

public void setDeviceSubtype(java.lang.String deviceSubtype)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDeviceSubtype

public java.lang.String getDeviceSubtype()
Sitting here until it can be determined where this will always private String deviceSubtype = ""; /** The next level of detail beyond device type. May indicate a type of browser or OS. examples: netscape or ie for personal computers ce or palm for pda, however, palm may be expanded into the browser type(blazer).

Specified by:
getDeviceSubtype in interface Device

getVendor

public java.lang.String getVendor()
The manufacturer of the client device. Often times this is not known, however, in new CC/PP and WAP profiles this and more specific are feasible. example: samsung, sanyo, ericson, etc.

Specified by:
getVendor in interface Device

setVendor

public void setVendor(java.lang.String vendor)

getModel

public java.lang.String getModel()
The model of the device made by the vendor. i.e. this is intended to be used with a series like Treo from Handspring.

Specified by:
getModel in interface Device

setModel

public void setModel(java.lang.String model)

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