4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
SecAttribute.java
Go to the documentation of this file.
1 /*
2  * Project: Server for annotations sharing
3  * Author: Ing. Jaroslav Dytrych idytrych@fit.vutbr.cz
4  * File: SecAttribute.java
5  * Description: Interface for SugBaseAttribute and AlternativeAttribuge.
6  */
7 
8 /**
9  * @file SecAttribute.java
10  *
11  * @brief Interface for SugBaseAttribute and AlternativeAttribuge.
12  */
13 
14 package cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative;
15 
16 import java.math.BigDecimal;
17 
18 /**
19  * Interface for SugBaseAttribute and AlternativeAttribuge.
20  *
21  * @brief Interface for SugBaseAttribute and AlternativeAttribuge.
22  *
23  * @author Marek Kopecký
24  */
25 public interface SecAttribute {
26 
27  /**
28  * Gets name of attribute
29  *
30  * @return Returns name of attribute
31  */
32  public String getName();
33 
34  /**
35  * Gets name of simple type of attribute
36  *
37  * @return Returns name of simple type of attribute
38  */
39  public String getSimpleType();
40 
41  /**
42  * Sets name of attribute
43  *
44  * @param name Name of attribute
45  */
46  public void setName(String name);
47 
48  /**
49  * Gets value of the attribute
50  *
51  * @return value of the attribute
52  */
53  public Object getValue();
54 
55  /**
56  * Sets value of the attribute. Value should already be a native java value.
57  *
58  * For example, for attribute of type Integer value should be integer, not
59  * string. If you want to set value and parse that value, you should use
60  * setRawValue
61  *
62  * @param value new value of the attribute
63  */
64  public void setValue(Object value);
65 
66  /**
67  * Gets attribute value of text
68  *
69  * @return Attribute value of text
70  */
71  public String getTextValue();
72 
73  /**
74  * Sets attribute priority
75  *
76  * @param priority Attribute priority
77  */
78  public void setPriority(Integer priority);
79 
80  /**
81  * Sets secSuggestion to which this attribute belongs
82  *
83  * @param value SecSuggestion to which this attribute belongs
84  */
85  public void setRefSecSuggestion(SecSuggestion value);
86 
87  /**
88  * Gets attribute priority
89  *
90  * @return Returns attribute priority
91  */
92  public Integer getPriority();
93 
94  /**
95  * Gets attribute value of string
96  *
97  * @return Attribute value of string
98  */
99  public String getStringValue();
100 
101  /**
102  * Gets attribute value of decimal
103  *
104  * @return Attribute value of decimal
105  */
106  public BigDecimal getDecValue();
107 }
Interface for SugBaseAttribute and AlternativeAttribuge.