4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.comet.SubscribedSource Class Reference

Subscribed source of annotations. More...

Collaboration diagram for cz.vutbr.fit.knot.annotations.comet.SubscribedSource:
Collaboration graph

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
 

Detailed Description

Subscribed source of annotations.

Class representing subscribed source of annotations

Author
idytrych

Definition at line 22 of file SubscribedSource.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.comet.SubscribedSource.SubscribedSource ( String  type,
String  user,
String  uri 
)

Constructor

Parameters
typeFilter for annotation types
userURI of user (author of annotation)
uriURI of source of annotation

Definition at line 37 of file SubscribedSource.java.

Here is the caller graph for this function:

Member Function Documentation

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).

Parameters
objObject to compare with
Returns
If object is same type and have same content, returns true, false otherwise

Definition at line 138 of file SubscribedSource.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.getType ( )

Gets filter for annotation types

Returns
Returns filter for annotation types

Definition at line 54 of file SubscribedSource.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.getUri ( )

Gets URI of user (author of annotation)

Returns
Returns URI of user (author of annotation)

Definition at line 63 of file SubscribedSource.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.getUser ( )

Gets URI of source of annotations

Returns
Returns URI of source of annotations

Definition at line 72 of file SubscribedSource.java.

Here is the caller graph for this function:

int cz.vutbr.fit.knot.annotations.comet.SubscribedSource.hashCode ( )

Returns hash code of this object. Hash is based on type, user and uri attribute.

Returns
Hash code

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

Parameters
typeAnnotation type
userAuthor of annotation
uriURI of source of annotation
Returns
If informations matches this subscription, returns true, false otherwise

Definition at line 117 of file SubscribedSource.java.

Here is the call graph for this function:

static String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.wildcardToRegex ( String  wildStr)
static

Converts string with wildcards (only usable wildcard is "*") to regular expression

Parameters
wildStrString with wildcards (only usable wildcard is "*")
Returns
Regular expression

Definition at line 83 of file SubscribedSource.java.

Here is the caller graph for this function:

Member Data Documentation

String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.type = null
private

Filter for annotation types

Definition at line 24 of file SubscribedSource.java.

String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.uri = null
private

Filter for URI (must be exact matching)

Definition at line 28 of file SubscribedSource.java.

String cz.vutbr.fit.knot.annotations.comet.SubscribedSource.user = null
private

Filter for user (must be exact matching)

Definition at line 26 of file SubscribedSource.java.


The documentation for this class was generated from the following file: