public class Browser extends VersionedObject
Constructor and Description |
---|
Browser(Brand _brand,
BrowserFamily _family,
java.lang.String _description,
RenderingEngine _renderingEngine)
This constructor of the Browser object does not specifie any of the version fields.
|
Browser(Brand _brand,
BrowserFamily _family,
java.lang.String _description,
RenderingEngine _renderingEngine,
java.lang.String _oneVersion)
This constructor of the Browser object only specifies the
fullVersion . |
Browser(Brand _brand,
BrowserFamily _family,
java.lang.String _description,
RenderingEngine _renderingEngine,
java.lang.String _oneVersion,
int _nbChunks)
This constructor of the Browser object only specifies the
fullVersion . |
Browser(Brand _brand,
BrowserFamily _family,
java.lang.String _description,
RenderingEngine _renderingEngine,
java.lang.String _version,
java.lang.String _fullVersion)
This is the most detailed constructor of the Browser object, where everything can be specified.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDescription() |
BrowserFamily |
getFamily() |
RenderingEngine |
getRenderingEngine() |
Brand |
getVendor() |
int |
hashCode() |
boolean |
isInWebView() |
void |
setDescription(java.lang.String d) |
void |
setFamily(BrowserFamily f) |
void |
setInWebView(boolean value) |
void |
setRenderingEngine(RenderingEngine re) |
void |
setVendor(Brand v) |
getFullVersion, getVersion, setFullVersionOneShot
public Browser(Brand _brand, BrowserFamily _family, java.lang.String _description, RenderingEngine _renderingEngine, java.lang.String _version, java.lang.String _fullVersion)
_brand
- The vendor of this browser._family
- The family of this browser._description
- The text description of this browser._renderingEngine
- The rendering engine of this browser._version
- The version of this browser._fullVersion
- The full version of this browser.public Browser(Brand _brand, BrowserFamily _family, java.lang.String _description, RenderingEngine _renderingEngine)
_brand
- The vendor of this browser._family
- The family of this browser._description
- The text description of this browser._renderingEngine
- The rendering engine of this browser.public Browser(Brand _brand, BrowserFamily _family, java.lang.String _description, RenderingEngine _renderingEngine, java.lang.String _oneVersion)
fullVersion
. The version
is deduced by calling setFullVersionOneShot(oneVersion)
._brand
- The vendor of this browser._family
- The family of this browser._description
- The text description of this browser._renderingEngine
- The rendering engine of this browser._oneVersion
- The full version of this browser.public Browser(Brand _brand, BrowserFamily _family, java.lang.String _description, RenderingEngine _renderingEngine, java.lang.String _oneVersion, int _nbChunks)
fullVersion
. The version
is deduced by calling setFullVersionOneShot(oneVersion)
._brand
- The vendor of this browser._family
- The family of this browser._description
- The text description of this browser._renderingEngine
- The rendering engine of this browser._oneVersion
- The full version of this browser._nbChunks
- Number of chunks of digits to keep in the short version.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Brand getVendor()
public void setVendor(Brand v)
v
- The company shipping the browserpublic BrowserFamily getFamily()
public void setFamily(BrowserFamily f)
f
- The general family of the browser. Could be FIREFOX, IE, CHROME, LIBRARY (means a program not being a browser), ...public java.lang.String getDescription()
public void setDescription(java.lang.String d)
d
- The precise description of the browser. Can be "Firefox" or "Galeon" or "Seamonkey", ...public RenderingEngine getRenderingEngine()
public void setRenderingEngine(RenderingEngine re)
re
- The rendering enginepublic boolean isInWebView()
public void setInWebView(boolean value)
value
- true if the browser is a webview, false if not or unknown