|
|
|
|
|
||||||||||
| 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.AbstractVersion<java.lang.String>
org.torweg.pulse.component.statistics.model.RegexVersion
@Entity public class RegexVersion
Represents a Version.
| Constructor Summary | |
|---|---|
protected |
RegexVersion()
Deprecated. |
|
RegexVersion(java.lang.String n,
java.lang.String reg)
Creates a new Version with the given display-name. and the
given regular expression. |
| Method Summary | |
|---|---|
java.lang.String |
getRegex()
Returns the regular expression. |
boolean |
isMatch(java.lang.String userAgentString)
Tests if the given string matches the underlying regular expression. |
void |
setRegex(java.lang.String reg)
Sets the regular expression. |
java.lang.String |
toString()
Returns a string representation of the Version. |
| Methods inherited from class org.torweg.pulse.component.statistics.model.AbstractVersion |
|---|
setName |
| 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 |
| Constructor Detail |
|---|
@Deprecated protected RegexVersion()
public RegexVersion(java.lang.String n,
java.lang.String reg)
Version with the given display-name. and the
given regular expression.
n - the namereg - the regular expression
java.lang.IllegalArgumentException - null or empty stringnull or
empty string| Method Detail |
|---|
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 boolean isMatch(java.lang.String userAgentString)
isMatch in class AbstractVersion<java.lang.String>userAgentString - the string to test
true if and only if the given string matches,
false otherwisepublic final java.lang.String toString()
Version.
toString in class AbstractVersion<java.lang.String>Version
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||