|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.AbstractNamedEntity
org.torweg.pulse.component.statistics.model.AbstractRegexVersioned
@MappedSuperclass public abstract class AbstractRegexVersioned
Abstract base class to derive "versioned" from.
| Field Summary | |
|---|---|
static java.lang.String |
UNKNOWN
The string "unknown" - to be used as category and defaultDisplayName for an "unknown" AbstractVersioned. |
| Constructor Summary | |
|---|---|
AbstractRegexVersioned()
|
|
| Method Summary | |
|---|---|
boolean |
addVersion(RegexVersion version)
Adds the given Version. |
java.lang.String |
getCategory()
Returns the category identifier. |
java.lang.String |
getRegex()
Returns the default regular expression. |
RegexVersion |
getVersion(java.lang.String s)
Returns a RegexVersion by a value to be used for the
version-check. |
java.util.List<RegexVersion> |
getVersions()
Returns the Versions. |
boolean |
isMatch(java.lang.String osString)
Checks if the given operating system-string matches the regular expression. |
boolean |
isUnknown()
Checks if the the current OperatingSystem is the "unknown"
operating system. |
void |
setCategory(java.lang.String cat)
Sets the category identifier. |
void |
setName(java.lang.String n)
Sets the default display name. |
void |
setRegex(java.lang.String reg)
Sets the default regular expression. |
java.lang.String |
toString()
Returns a string representation of the UserAgent. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity |
|---|
getName |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UNKNOWN
AbstractVersioned.
| Constructor Detail |
|---|
public AbstractRegexVersioned()
| Method Detail |
|---|
public final java.util.List<RegexVersion> getVersions()
Versions.
public final boolean addVersion(RegexVersion version)
Version.
version - the Version to add
true if and only if the given Version has been
added to the internal List<Version>, false
otherwisepublic final java.lang.String getCategory()
public final void setCategory(java.lang.String cat)
cat - the category
java.lang.IllegalArgumentException - if the given category is null or empty stringpublic final void setName(java.lang.String n)
setName in class AbstractNamedEntityn - the name
java.lang.IllegalArgumentException - if the given name is null or empty stringINameable.setName(java.lang.String)public final java.lang.String getRegex()
public final void setRegex(java.lang.String reg)
reg - the regular expression
java.lang.IllegalArgumentException - if the given regular expression is null or empty
stringpublic final RegexVersion getVersion(java.lang.String s)
RegexVersion by a value to be used for the
version-check.
s - the string to be used for the check
RegexVersion if any matches, null
otherwisepublic final boolean isMatch(java.lang.String osString)
osString - the operating system-string
true if and only if the string is a match, false
otherwisepublic final boolean isUnknown()
OperatingSystem is the "unknown"
operating system.
true if the OperatingSystem is the "unknown"
operating system, false otherwisepublic java.lang.String toString()
UserAgent.
toString in class java.lang.ObjectUserAgent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||