com.free2be.dimensions.device.profile
Class SoftwareProfile

java.lang.Object
  extended by com.free2be.dimensions.device.simple.SimpleDeviceComponent
      extended by com.free2be.dimensions.device.simple.SimpleSoftware
          extended by com.free2be.dimensions.device.profile.SoftwareProfile
All Implemented Interfaces:
DeviceComponent, Software, java.io.Serializable

public class SoftwareProfile
extends SimpleSoftware
implements Software

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.free2be.dimensions.device.simple.SimpleDeviceComponent
END_TAG_INDICATOR, GREATER_THAN, LESS_THAN
 
Constructor Summary
SoftwareProfile(org.dom4j.Node softwareNode, org.dom4j.Node browserNode)
           
 
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.
 Audio getAudio()
           
 Browser getBrowser()
           
 DeviceImage getImage()
           
 Java getJava()
           
 java.lang.String getPreferredContentType()
          This method needs some major rethinking and reworking once put to use.
 WapBrowser getWapBrowser()
           
 boolean isHtmlCapable()
           
 boolean isWmlCapable()
           
 
Methods inherited from class com.free2be.dimensions.device.simple.SimpleSoftware
getOsName, getOsVendor, getOsVersion, getPropertyName, setOsName, setOsVendor, setOsVersion, setPreferredContentType
 
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
 
Methods inherited from interface com.free2be.dimensions.device.Software
getOsName, getOsVendor
 

Constructor Detail

SoftwareProfile

public SoftwareProfile(org.dom4j.Node softwareNode,
                       org.dom4j.Node browserNode)
Parameters:
node - containing standard UAProf where component description id = SoftwarePlatform
Method Detail

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

getBrowser

public Browser getBrowser()
Specified by:
getBrowser in interface Software
Overrides:
getBrowser in class SimpleSoftware

getJava

public Java getJava()
Specified by:
getJava in interface Software
Overrides:
getJava in class SimpleSoftware

getWapBrowser

public WapBrowser getWapBrowser()
Specified by:
getWapBrowser in interface Software
Overrides:
getWapBrowser in class SimpleSoftware

getImage

public DeviceImage getImage()
Specified by:
getImage in interface Software
Overrides:
getImage in class SimpleSoftware

getAudio

public Audio getAudio()
Specified by:
getAudio in interface Software
Overrides:
getAudio in class SimpleSoftware

isWmlCapable

public boolean isWmlCapable()

isHtmlCapable

public boolean isHtmlCapable()

getPreferredContentType

public java.lang.String getPreferredContentType()
This method needs some major rethinking and reworking once put to use.

Specified by:
getPreferredContentType in interface Software
Overrides:
getPreferredContentType in class SimpleSoftware