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

Class representing parameter of user settings. More...

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

Public Member Functions

 Settings ()
 
 Settings (Integer id)
 
 Settings (User user, String name, String value)
 
 Settings (User user, String name, String value, String description)
 
Integer getId ()
 
void setId (Integer id)
 
int getUserId ()
 
void setUserId (int userId)
 
User getUser ()
 
void setUser (User user)
 
String getName ()
 
void setName (String name)
 
String getValue ()
 
void setValue (String value)
 
String getDescription ()
 
void setDescription (String description)
 
boolean isStyleSetting ()
 
int hashCode ()
 
boolean equals (Object object)
 
String toString ()
 
String toXMLString ()
 

Private Attributes

Integer id
 
int userId
 
String name
 
String value
 
String description
 
User user
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

Class representing parameter of user settings.

Class representing parameter of user settings

Author
Martin Petr (xpetrm05)

Definition at line 45 of file Settings.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.entity.Settings.Settings ( )

Constructor

Definition at line 82 of file Settings.java.

cz.vutbr.fit.knot.annotations.entity.Settings.Settings ( Integer  id)

Constructor

Parameters
idid of parameter of user settings

Definition at line 90 of file Settings.java.

cz.vutbr.fit.knot.annotations.entity.Settings.Settings ( User  user,
String  name,
String  value 
)

Constructor

Parameters
userUser to which this parameter belongs to
nameName of parameter
valueValue of parameter

Definition at line 101 of file Settings.java.

cz.vutbr.fit.knot.annotations.entity.Settings.Settings ( User  user,
String  name,
String  value,
String  description 
)

Constructor

Parameters
userUser to which this parameter belongs to
nameName of parameter
valueValue of parameter
descriptionDescription of parameter

Definition at line 117 of file Settings.java.

Member Function Documentation

boolean cz.vutbr.fit.knot.annotations.entity.Settings.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 259 of file Settings.java.

String cz.vutbr.fit.knot.annotations.entity.Settings.getDescription ( )

Gets description of parameter

Returns
Returns description of parameter

Definition at line 220 of file Settings.java.

Integer cz.vutbr.fit.knot.annotations.entity.Settings.getId ( )

Gets id of parameter of user settings

Returns
id of parameter of user settings

Definition at line 130 of file Settings.java.

String cz.vutbr.fit.knot.annotations.entity.Settings.getName ( )

Gets name of parameter

Returns
Returns name of parameter

Definition at line 184 of file Settings.java.

Here is the caller graph for this function:

User cz.vutbr.fit.knot.annotations.entity.Settings.getUser ( )

Gets the user to which this parameter belongs to

Returns
Returns user to which this parameter belongs to

Definition at line 166 of file Settings.java.

int cz.vutbr.fit.knot.annotations.entity.Settings.getUserId ( )

Gets id of user to which this parameter belongs to

Returns
id of user to which this parameter belongs to

Definition at line 148 of file Settings.java.

String cz.vutbr.fit.knot.annotations.entity.Settings.getValue ( )

Gets value of parameter

Returns
Returns value of parameter

Definition at line 202 of file Settings.java.

int cz.vutbr.fit.knot.annotations.entity.Settings.hashCode ( )

Definition at line 245 of file Settings.java.

boolean cz.vutbr.fit.knot.annotations.entity.Settings.isStyleSetting ( )

Method returns true wether value is string with annotation style

Returns
true if value is annotation style

Definition at line 238 of file Settings.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.entity.Settings.setDescription ( String  description)

Sets description of parameter

Parameters
descriptionDescription of parameter

Definition at line 229 of file Settings.java.

void cz.vutbr.fit.knot.annotations.entity.Settings.setId ( Integer  id)

Sets id of parameter of user settings

Parameters
idid of parameter of user settings

Definition at line 139 of file Settings.java.

void cz.vutbr.fit.knot.annotations.entity.Settings.setName ( String  name)

Sets name of parameter

Parameters
nameName of parameter

Definition at line 193 of file Settings.java.

void cz.vutbr.fit.knot.annotations.entity.Settings.setUser ( User  user)

Sets the user to which this parameter belongs to

Parameters
userUser to which this parameter belongs to

Definition at line 175 of file Settings.java.

void cz.vutbr.fit.knot.annotations.entity.Settings.setUserId ( int  userId)

Sets id of user to which this parameter belongs to

Parameters
userIdId of user to which this parameter belongs to

Definition at line 157 of file Settings.java.

void cz.vutbr.fit.knot.annotations.entity.Settings.setValue ( String  value)

Sets value of parameter

Parameters
valueValue of parameter

Definition at line 211 of file Settings.java.

String cz.vutbr.fit.knot.annotations.entity.Settings.toString ( )

Definition at line 271 of file Settings.java.

String cz.vutbr.fit.knot.annotations.entity.Settings.toXMLString ( )

Returns serialized informations about parameter of user settings in XML

Returns
Returns serialized informations about parameter of user settings in XML

Definition at line 280 of file Settings.java.

Member Data Documentation

String cz.vutbr.fit.knot.annotations.entity.Settings.description
private

Description of parameter of user settings

Definition at line 72 of file Settings.java.

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

Id of parameter of user settings

Definition at line 52 of file Settings.java.

String cz.vutbr.fit.knot.annotations.entity.Settings.name
private

Name of parameter of user settings

Definition at line 61 of file Settings.java.

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

Definition at line 46 of file Settings.java.

User cz.vutbr.fit.knot.annotations.entity.Settings.user
private

User to which this parameter belongs to

Definition at line 77 of file Settings.java.

int cz.vutbr.fit.knot.annotations.entity.Settings.userId
private

Id of user to which this parameter belongs to

Definition at line 56 of file Settings.java.

String cz.vutbr.fit.knot.annotations.entity.Settings.value
private

Value of parameter of user settings

Definition at line 66 of file Settings.java.


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