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