4A Server -
2.0
|
Class representing source of subscription. More...
Public Member Functions | |
Source () | |
Source (Integer id) | |
Source (Integer id, boolean polarity) | |
Integer | getId () |
void | setId (Integer id) |
String | getAnnotType () |
void | setAnnotType (String annotType) |
String | getUser () |
void | setUser (String user) |
String | getSource () |
void | setSource (String source) |
boolean | getPolarity () |
void | setPolarity (boolean polarity) |
Integer | getPackageId () |
void | setPackageId (Integer packageId) |
Subscription | getRefSubscription () |
void | setRefSubscription (Subscription refSubscription) |
int | hashCode () |
boolean | equals (Object object) |
String | toString () |
String | toXMLStringV2 () |
SubscribedSource | getSourceAsSubSource () |
Private Attributes | |
Integer | id |
String | annotType |
String | userUri |
String | source |
boolean | polarity |
Integer | packageId |
Subscription | refSubscription |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Class representing source of subscription.
Class representing source of subscription.
Definition at line 47 of file Source.java.
cz.vutbr.fit.knot.annotations.entity.Source.Source | ( | ) |
Constructor
Definition at line 90 of file Source.java.
cz.vutbr.fit.knot.annotations.entity.Source.Source | ( | Integer | id | ) |
Constructor
id | identificator of source of subscription |
Definition at line 98 of file Source.java.
cz.vutbr.fit.knot.annotations.entity.Source.Source | ( | Integer | id, |
boolean | polarity | ||
) |
Constructor
id | identificator of source of subscription |
polarity | set if subscription is positive or negative |
Definition at line 108 of file Source.java.
boolean cz.vutbr.fit.knot.annotations.entity.Source.equals | ( | Object | object | ) |
Compares this with other object and returns, whether objects are same type and have same id.
object | Object to compare with |
Definition at line 254 of file Source.java.
String cz.vutbr.fit.knot.annotations.entity.Source.getAnnotType | ( | ) |
Gets uri of annotation type as source.
Definition at line 136 of file Source.java.
Integer cz.vutbr.fit.knot.annotations.entity.Source.getId | ( | ) |
Gets id of source of subscription.
Definition at line 118 of file Source.java.
Integer cz.vutbr.fit.knot.annotations.entity.Source.getPackageId | ( | ) |
Gets id of subscription that this source belongs.
Definition at line 208 of file Source.java.
boolean cz.vutbr.fit.knot.annotations.entity.Source.getPolarity | ( | ) |
Gets variable that indicates wether is positive or negative subscription.
Definition at line 190 of file Source.java.
Subscription cz.vutbr.fit.knot.annotations.entity.Source.getRefSubscription | ( | ) |
Gets subscription that this source belongs.
Definition at line 226 of file Source.java.
String cz.vutbr.fit.knot.annotations.entity.Source.getSource | ( | ) |
SubscribedSource cz.vutbr.fit.knot.annotations.entity.Source.getSourceAsSubSource | ( | ) |
Gets this source as SubscribedSource
Definition at line 310 of file Source.java.
String cz.vutbr.fit.knot.annotations.entity.Source.getUser | ( | ) |
Gets uri of user as source.
Definition at line 154 of file Source.java.
int cz.vutbr.fit.knot.annotations.entity.Source.hashCode | ( | ) |
Definition at line 240 of file Source.java.
void cz.vutbr.fit.knot.annotations.entity.Source.setAnnotType | ( | String | annotType | ) |
Sets uri of annotation type as source.
annotType | uri of annotation type as source |
Definition at line 145 of file Source.java.
void cz.vutbr.fit.knot.annotations.entity.Source.setId | ( | Integer | id | ) |
Sets id of source of subscription.
id | id of source of subscription |
Definition at line 127 of file Source.java.
void cz.vutbr.fit.knot.annotations.entity.Source.setPackageId | ( | Integer | packageId | ) |
Sets id of subscription that this source belongs.
packageId | id of subscription that this source belongs |
Definition at line 217 of file Source.java.
void cz.vutbr.fit.knot.annotations.entity.Source.setPolarity | ( | boolean | polarity | ) |
Sets variable that indicates wether is positive or negative subscription.
polarity | indicates wether is positive or negative subscription |
Definition at line 199 of file Source.java.
void cz.vutbr.fit.knot.annotations.entity.Source.setRefSubscription | ( | Subscription | refSubscription | ) |
Sets subscription that this source belongs.
refSubscription | subscription that this source belongs |
Definition at line 235 of file Source.java.
void cz.vutbr.fit.knot.annotations.entity.Source.setSource | ( | String | source | ) |
Sets uri of other sources.
source | uri of other sources |
Definition at line 181 of file Source.java.
void cz.vutbr.fit.knot.annotations.entity.Source.setUser | ( | String | user | ) |
Sets uri of user as source.
user | uri of user as source |
Definition at line 163 of file Source.java.
String cz.vutbr.fit.knot.annotations.entity.Source.toString | ( | ) |
Definition at line 266 of file Source.java.
String cz.vutbr.fit.knot.annotations.entity.Source.toXMLStringV2 | ( | ) |
Returns serialized informations about source of subscription in XML for protocol version 2.
Definition at line 276 of file Source.java.
|
private |
Uri of annotation type as source
Definition at line 59 of file Source.java.
|
private |
Id of source of subscription
Definition at line 54 of file Source.java.
|
private |
Id of subscription that this source belongs
Definition at line 80 of file Source.java.
|
private |
Indicates wether is positive or negative subscription
Definition at line 75 of file Source.java.
|
private |
Subscription that this source belongs
Definition at line 85 of file Source.java.
|
staticprivate |
Definition at line 48 of file Source.java.
|
private |
Uri of other sources
Definition at line 69 of file Source.java.
|
private |
Uri of user as source
Definition at line 64 of file Source.java.