|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.free2be.dimensions.device.simple.SimpleDeviceComponent com.free2be.dimensions.device.simple.SimpleDevice
public class SimpleDevice
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
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 |
---|
public SimpleDevice()
Method Detail |
---|
public java.lang.String getContentType()
Device
getContentType
in interface Device
Browser
public java.lang.String getDeviceType()
Device
getDeviceType
in interface Device
Hardware
public Software getSoftware()
getSoftware
in interface Device
public Hardware getHardware()
getHardware
in interface Device
public Network getNetwork()
getNetwork
in interface Device
public void setContentType(java.lang.String contentType)
public void setDeviceType(java.lang.String deviceType)
public void setDeviceSubtype(java.lang.String deviceSubtype)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDeviceSubtype()
getDeviceSubtype
in interface Device
public java.lang.String getVendor()
getVendor
in interface Device
public void setVendor(java.lang.String vendor)
public java.lang.String getModel()
getModel
in interface Device
public void setModel(java.lang.String model)
public java.lang.String getPropertyName()
SimpleDeviceComponent
getPropertyName
in class SimpleDeviceComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |