Skip to content

Method: LibReference(LibRefState, SOName)

1: package libraries;
2:
3: /**
4: * class for library references.
5: *
6: * @author Markus
7: *
8: */
9: public class LibReference {
10:
11:         /**
12:          * represents the name of the structured object.
13:          */
14:         private SOName soName;
15:
16:         /**
17:          * represents the library reference state.
18:          */
19:         private LibRefState refstate;
20:
21:         /**
22:          * constructor. initialize the attributes.
23:          *
24:          * @param libRefState
25:          * a resolved or unresolved State
26:          * @param soname2
27:          * the soName
28:          */
29:         public LibReference(final LibRefState libRefState, final SOName soname2) {
30:                 super();
31:                 this.soName = soname2;
32:                 this.refstate = libRefState;
33:         }
34:
35:         /**
36:          * getter for SOName.
37:          *
38:          * @return SOName
39:          */
40:         public SOName getSoName() {
41:                 return this.soName;
42:         }
43:
44:         /**
45:          * setter for SOName.
46:          *
47:          * @param soName
48:          * param SOName.
49:          */
50:         public void setSoName(final SOName soName) {
51:                 this.soName = soName;
52:         }
53:
54:         /**
55:          * getter for RefState.
56:          *
57:          * @return LibRefState.
58:          */
59:         public LibRefState getRefstate() {
60:                 return this.refstate;
61:         }
62:
63:         /**
64:          *
65:          * @param refstate
66:          * param refstate.
67:          */
68:         public void setRefstate(final LibRefState refstate) {
69:                 this.refstate = refstate;
70:         }
71: }