4A Server -
2.0
|
Subscribed source of annotations. More...
Public Member Functions | |
SubscribedSource (String type, String user, String uri) | |
String | getType () |
String | getUri () |
String | getUser () |
boolean | matches (String type, String user, String uri) |
boolean | equals (Object obj) |
int | hashCode () |
Static Public Member Functions | |
static String | wildcardToRegex (String wildStr) |
Private Attributes | |
String | type = null |
String | user = null |
String | uri = null |
Subscribed source of annotations.
Class representing subscribed source of annotations
Definition at line 22 of file SubscribedSource.java.
cz.vutbr.fit.knot.annotations.comet.SubscribedSource.SubscribedSource | ( | String | type, |
String | user, | ||
String | uri | ||
) |
Constructor
type | Filter for annotation types |
user | URI of user (author of annotation) |
uri | URI of source of annotation |
Definition at line 37 of file SubscribedSource.java.
boolean cz.vutbr.fit.knot.annotations.comet.SubscribedSource.equals | ( | Object | obj | ) |
Compares this with other object and returns, whether objects are same type and have same content (id is irelevant).
obj | Object to compare with |
Definition at line 138 of file SubscribedSource.java.
String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.getType | ( | ) |
Gets filter for annotation types
Definition at line 54 of file SubscribedSource.java.
String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.getUri | ( | ) |
Gets URI of user (author of annotation)
Definition at line 63 of file SubscribedSource.java.
String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.getUser | ( | ) |
Gets URI of source of annotations
Definition at line 72 of file SubscribedSource.java.
int cz.vutbr.fit.knot.annotations.comet.SubscribedSource.hashCode | ( | ) |
Returns hash code of this object. Hash is based on type, user and uri attribute.
Definition at line 172 of file SubscribedSource.java.
boolean cz.vutbr.fit.knot.annotations.comet.SubscribedSource.matches | ( | String | type, |
String | user, | ||
String | uri | ||
) |
Checks whether annotation with given type, user and URI matches this subscription
type | Annotation type |
user | Author of annotation |
uri | URI of source of annotation |
Definition at line 117 of file SubscribedSource.java.
|
static |
Converts string with wildcards (only usable wildcard is "*") to regular expression
wildStr | String with wildcards (only usable wildcard is "*") |
Definition at line 83 of file SubscribedSource.java.
|
private |
Filter for annotation types
Definition at line 24 of file SubscribedSource.java.
|
private |
Filter for URI (must be exact matching)
Definition at line 28 of file SubscribedSource.java.
|
private |
Filter for user (must be exact matching)
Definition at line 26 of file SubscribedSource.java.