KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > dd > api > web > Cache


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * Cache.java
21  *
22  * Created on November 15, 2004, 4:26 PM
23  */

24
25 package org.netbeans.modules.j2ee.sun.dd.api.web;
26
27 public interface Cache extends org.netbeans.modules.j2ee.sun.dd.api.CommonDDBean {
28
29         public static final String JavaDoc MAXENTRIES = "MaxEntries"; // NOI18N
30
public static final String JavaDoc TIMEOUTINSECONDS = "TimeoutInSeconds"; // NOI18N
31
public static final String JavaDoc ENABLED = "Enabled"; // NOI18N
32
public static final String JavaDoc CACHE_HELPER = "CacheHelper"; // NOI18N
33
public static final String JavaDoc DEFAULT_HELPER = "DefaultHelper"; // NOI18N
34
public static final String JavaDoc PROPERTY = "WebProperty"; // NOI18N
35
public static final String JavaDoc CACHE_MAPPING = "CacheMapping"; // NOI18N
36

37         /** Setter for max-entries attribute
38          * @param value attribute value
39          */

40     public void setMaxEntries(java.lang.String JavaDoc value);
41         /** Getter for max-entries attribute.
42          * @return attribute value
43          */

44     public java.lang.String JavaDoc getMaxEntries();
45         /** Setter for timeout-in-seconds attribute
46          * @param value attribute value
47          */

48     public void setTimeoutInSeconds(java.lang.String JavaDoc value);
49         /** Getter for timeout-in-seconds attribute.
50          * @return attribute value
51          */

52     public java.lang.String JavaDoc getTimeoutInSeconds();
53         /** Setter for enabled attribute
54          * @param value attribute value
55          */

56     public void setEnabled(java.lang.String JavaDoc value);
57         /** Getter for enabled property.
58          * @return property value
59          */

60     public java.lang.String JavaDoc getEnabled();
61
62     public void setCacheHelper(int index, CacheHelper value);
63     public CacheHelper getCacheHelper(int index);
64     public int sizeCacheHelper();
65     public void setCacheHelper(CacheHelper[] value);
66     public CacheHelper[] getCacheHelper();
67     public int addCacheHelper(CacheHelper value);
68     public int removeCacheHelper(CacheHelper value);
69     public CacheHelper newCacheHelper();
70
71         /** Setter for default-helper property
72          * @param value property value
73          */

74     public void setDefaultHelper(DefaultHelper value);
75         /** Getter for default-helper property.
76          * @return property value
77          */

78     public DefaultHelper getDefaultHelper();
79
80     public DefaultHelper newDefaultHelper();
81
82     public void setWebProperty(int index, WebProperty value);
83     public WebProperty getWebProperty(int index);
84     public int sizeWebProperty();
85     public void setWebProperty(WebProperty[] value);
86     public WebProperty[] getWebProperty();
87     public int addWebProperty(WebProperty value);
88     public int removeWebProperty(WebProperty value);
89     public WebProperty newWebProperty();
90
91     public void setCacheMapping(int index, CacheMapping value);
92     public CacheMapping getCacheMapping(int index);
93     public int sizeCacheMapping();
94     public void setCacheMapping(CacheMapping[] value);
95     public CacheMapping[] getCacheMapping();
96     public int addCacheMapping(CacheMapping value);
97     public int removeCacheMapping(CacheMapping value);
98     public CacheMapping newCacheMapping();
99
100 }
101
Popular Tags