KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > approval > ApprovalDataText


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13 package org.ejbca.core.model.approval;
14
15 /**
16  * Class used in presenting approval data for the approving administrator
17  * Contains a header and a data part and booleans if they should be
18  * translated or not.
19  *
20  * @author Philip Vendil
21  *
22  * @version $Id: ApprovalDataText.java,v 1.2 2006/08/10 10:09:05 anatom Exp $
23  */

24 public class ApprovalDataText {
25     String JavaDoc header;
26     String JavaDoc data;
27     boolean headerTranslateable;
28     boolean dataTranslatable;
29     
30     public ApprovalDataText(String JavaDoc header, String JavaDoc data, boolean headerTranslateable, boolean dataTranslatable) {
31         super();
32         this.header = header;
33         this.data = data;
34         this.headerTranslateable = headerTranslateable;
35         this.dataTranslatable = dataTranslatable;
36     }
37     
38     public String JavaDoc getData() {
39         return data;
40     }
41
42     public boolean isDataTranslatable() {
43         return dataTranslatable;
44     }
45
46     public String JavaDoc getHeader() {
47         return header;
48     }
49
50     public boolean isHeaderTranslateable() {
51         return headerTranslateable;
52     }
53 }
54
Popular Tags