1 // =================== DO NOT EDIT THIS FILE ====================
2 // Generated by Modello 1.7,
3 // any modifications will be overwritten.
4 // ==============================================================
5
6 package org.apache.archiva.redback.keys.jdo;
7
8 /**
9 * Class AuthenticationKeyDatabase.
10 *
11 * @version $Revision$ $Date$
12 */
13 public class AuthenticationKeyDatabase
14 implements java.io.Serializable
15 {
16
17 //--------------------------/
18 //- Class/Member Variables -/
19 //--------------------------/
20
21 /**
22 * Field keys.
23 */
24 private java.util.List/*<JdoAuthenticationKey>*/ keys;
25
26 /**
27 * Field modelEncoding.
28 */
29 private String modelEncoding = "UTF-8";
30
31
32 //-----------/
33 //- Methods -/
34 //-----------/
35
36 /**
37 * Method addKey.
38 *
39 * @param jdoAuthenticationKey
40 */
41 public void addKey( JdoAuthenticationKey jdoAuthenticationKey )
42 {
43 getKeys().add( jdoAuthenticationKey );
44 } //-- void addKey( JdoAuthenticationKey )
45
46 /**
47 * Method getKeys.
48 *
49 * @return List
50 */
51 public java.util.List/*<JdoAuthenticationKey>*/ getKeys()
52 {
53 if ( this.keys == null )
54 {
55 this.keys = new java.util.ArrayList/*<JdoAuthenticationKey>*/();
56 }
57
58 return this.keys;
59 } //-- java.util.List/*<JdoAuthenticationKey>*/ getKeys()
60
61 /**
62 * Get the modelEncoding field.
63 *
64 * @return String
65 */
66 public String getModelEncoding()
67 {
68 return this.modelEncoding;
69 } //-- String getModelEncoding()
70
71 /**
72 * Method removeKey.
73 *
74 * @param jdoAuthenticationKey
75 */
76 public void removeKey( JdoAuthenticationKey jdoAuthenticationKey )
77 {
78 getKeys().remove( jdoAuthenticationKey );
79 } //-- void removeKey( JdoAuthenticationKey )
80
81 /**
82 * Set the keys field.
83 *
84 * @param keys
85 */
86 public void setKeys( java.util.List/*<JdoAuthenticationKey>*/ keys )
87 {
88 this.keys = keys;
89 } //-- void setKeys( java.util.List )
90
91 /**
92 * Set the modelEncoding field.
93 *
94 * @param modelEncoding
95 */
96 public void setModelEncoding( String modelEncoding )
97 {
98 this.modelEncoding = modelEncoding;
99 } //-- void setModelEncoding( String )
100
101 }