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

Class representing source of subscription. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.entity.Source:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.entity.Source:
Collaboration graph

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
 

Detailed Description

Class representing source of subscription.

Class representing source of subscription.

Author
Martin Petr (xpetrm05)

Definition at line 47 of file Source.java.

Constructor & Destructor Documentation

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

Parameters
ididentificator 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

Parameters
ididentificator of source of subscription
polarityset if subscription is positive or negative

Definition at line 108 of file Source.java.

Member Function Documentation

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.

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

Definition at line 254 of file Source.java.

String cz.vutbr.fit.knot.annotations.entity.Source.getAnnotType ( )

Gets uri of annotation type as source.

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

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

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

Returns
variable that indicates wether is positive or negative subscription

Definition at line 190 of file Source.java.

Here is the caller graph for this function:

Subscription cz.vutbr.fit.knot.annotations.entity.Source.getRefSubscription ( )

Gets subscription that this source belongs.

Returns
subscription that this source belongs

Definition at line 226 of file Source.java.

String cz.vutbr.fit.knot.annotations.entity.Source.getSource ( )

Gets uri of other sources.

Returns
uri of other sources

Definition at line 172 of file Source.java.

SubscribedSource cz.vutbr.fit.knot.annotations.entity.Source.getSourceAsSubSource ( )

Gets this source as SubscribedSource

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

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

Parameters
annotTypeuri 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.

Parameters
idid 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.

Parameters
packageIdid 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.

Parameters
polarityindicates 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.

Parameters
refSubscriptionsubscription 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.

Parameters
sourceuri 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.

Parameters
useruri 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.

Returns
Returns serialized informations about source of subscription in XML

Definition at line 276 of file Source.java.

Member Data Documentation

String cz.vutbr.fit.knot.annotations.entity.Source.annotType
private

Uri of annotation type as source

Definition at line 59 of file Source.java.

Integer cz.vutbr.fit.knot.annotations.entity.Source.id
private

Id of source of subscription

Definition at line 54 of file Source.java.

Integer cz.vutbr.fit.knot.annotations.entity.Source.packageId
private

Id of subscription that this source belongs

Definition at line 80 of file Source.java.

boolean cz.vutbr.fit.knot.annotations.entity.Source.polarity
private

Indicates wether is positive or negative subscription

Definition at line 75 of file Source.java.

Subscription cz.vutbr.fit.knot.annotations.entity.Source.refSubscription
private

Subscription that this source belongs

Definition at line 85 of file Source.java.

final long cz.vutbr.fit.knot.annotations.entity.Source.serialVersionUID = 1L
staticprivate

Definition at line 48 of file Source.java.

String cz.vutbr.fit.knot.annotations.entity.Source.source
private

Uri of other sources

Definition at line 69 of file Source.java.

String cz.vutbr.fit.knot.annotations.entity.Source.userUri
private

Uri of user as source

Definition at line 64 of file Source.java.


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