org.torweg.pulse.component.statistics.model
Class OperatingSystem
java.lang.Object
org.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.AbstractNamedEntity
org.torweg.pulse.component.statistics.model.AbstractRegexVersioned
org.torweg.pulse.component.statistics.model.OperatingSystem
- All Implemented Interfaces:
- java.io.Serializable, INamed
@Entity
public class OperatingSystem
- extends AbstractRegexVersioned
Represents an "operating system".
- Version:
- $Revision: 1548 $
- Author:
- Daniel Dietz
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
OperatingSystem()
Deprecated. |
|
OperatingSystem(java.lang.String cat,
java.lang.String n,
java.lang.String reg)
Creates a new OperatingSystem with the given category,
display name and regular expression. |
|
Method Summary |
static OperatingSystem |
unknown()
Returns the default OperatingSystem for representing a
unknown operating system within the website statistics. |
| Methods inherited from class org.torweg.pulse.component.statistics.model.AbstractRegexVersioned |
addVersion, getCategory, getRegex, getVersion, getVersions, isMatch, isUnknown, setCategory, setName, setRegex, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
OperatingSystem
@Deprecated
protected OperatingSystem()
- Deprecated.
- Default constructor.
OperatingSystem
public OperatingSystem(java.lang.String cat,
java.lang.String n,
java.lang.String reg)
- Creates a new
OperatingSystem with the given category,
display name and regular expression.
- Parameters:
cat - the name of the categoryn - the default display namereg - the default regular expression
- Throws:
java.lang.IllegalArgumentException -
- if the given category is
null or empty
string
- if the given name is
null or empty string
- if the given regular expression is
null or
empty string
unknown
public static final OperatingSystem unknown()
- Returns the default
OperatingSystem for representing a
unknown operating system within the website statistics.
- category: unknown
- defaultDisplayName: unknown
- regex: "empty string"
- Returns:
- the default "unknown"
OperatingSystem