|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.uadetector.internal.data.DataBuilder
@NotThreadSafe public class DataBuilder
This class is intended to create instances of Data.
| Constructor Summary | |
|---|---|
DataBuilder()
|
|
| Method Summary | |
|---|---|
DataBuilder |
appendBrowser(Browser browser)
|
DataBuilder |
appendBrowserBuilder(Browser.Builder browserBuilder)
Appends a copy of the given Browser.Builder to the internal data structure. |
DataBuilder |
appendBrowserOperatingSystemMapping(BrowserOperatingSystemMapping browserOsMapping)
|
DataBuilder |
appendBrowserPattern(BrowserPattern pattern)
Appends a browser pattern to the map of pattern sorted by ID. |
DataBuilder |
appendBrowserType(BrowserType type)
|
DataBuilder |
appendDevice(Device device)
|
DataBuilder |
appendDeviceBuilder(Device.Builder deviceBuilder)
Appends a copy of the given Device.Builder to the internal data structure. |
DataBuilder |
appendDevicePattern(DevicePattern pattern)
Appends a device pattern to the map of pattern sorted by ID. |
DataBuilder |
appendOperatingSystem(OperatingSystem operatingSystem)
|
DataBuilder |
appendOperatingSystemBuilder(OperatingSystem.Builder operatingSystemBuilder)
Appends a copy of the given OperatingSystem.Builder to the internal data structure. |
DataBuilder |
appendOperatingSystemPattern(OperatingSystemPattern pattern)
Appends an operating system pattern to the map of pattern sorted by ID. |
DataBuilder |
appendRobot(Robot robot)
|
Data |
build()
|
DataBuilder |
setVersion(java.lang.String version)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataBuilder()
| Method Detail |
|---|
public DataBuilder appendBrowser(@Nonnull
Browser browser)
@Nonnull
public DataBuilder appendBrowserBuilder(@Nonnull
Browser.Builder browserBuilder)
Browser.Builder to the internal data structure.
browserBuilder - Browser.Builder to be copied and appended
Builder, for chaining
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is null
net.sf.qualitycheck.exception.IllegalStateOfArgumentException - if the ID of the given builder is invalid
net.sf.qualitycheck.exception.IllegalStateOfArgumentException - if a builder with the same ID already exists
@Nonnull
public DataBuilder appendBrowserOperatingSystemMapping(@Nonnull
BrowserOperatingSystemMapping browserOsMapping)
@Nonnull
public DataBuilder appendBrowserPattern(@Nonnull
BrowserPattern pattern)
pattern - a pattern for a browser
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is null
@Nonnull
public DataBuilder appendBrowserType(@Nonnull
BrowserType type)
public DataBuilder appendDevice(@Nonnull
Device device)
@Nonnull
public DataBuilder appendDeviceBuilder(@Nonnull
Device.Builder deviceBuilder)
Device.Builder to the internal data structure.
deviceBuilder - Device.Builder to be copied and appended
Builder, for chaining
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is null
net.sf.qualitycheck.exception.IllegalStateOfArgumentException - if the ID of the given builder is invalid
net.sf.qualitycheck.exception.IllegalStateOfArgumentException - if a builder with the same ID already exists
@Nonnull
public DataBuilder appendDevicePattern(@Nonnull
DevicePattern pattern)
pattern - a pattern for a device
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is null
@Nonnull
public DataBuilder appendOperatingSystem(@Nonnull
OperatingSystem operatingSystem)
@Nonnull
public DataBuilder appendOperatingSystemBuilder(@Nonnull
OperatingSystem.Builder operatingSystemBuilder)
OperatingSystem.Builder to the internal data structure.
operatingSystemBuilder - OperatingSystem.Builder to be copied and appended
Builder, for chaining
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is null
net.sf.qualitycheck.exception.IllegalNegativeArgumentException - if the ID of the given builder is negative
net.sf.qualitycheck.exception.IllegalStateOfArgumentException - if a builder with the same ID already exists
@Nonnull
public DataBuilder appendOperatingSystemPattern(@Nonnull
OperatingSystemPattern pattern)
pattern - a pattern for a browser
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the pattern is null
@Nonnull
public DataBuilder appendRobot(@Nonnull
Robot robot)
@Nonnull public Data build()
@Nonnull
public DataBuilder setVersion(@Nonnull
java.lang.String version)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||