KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > common > command > Configurator


1 /***************************************
2  * *
3  * Nukes: The OpenSource CMS *
4  * *
5  * Distributable under GPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.portal.common.command;
10
11 /**
12  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
13  * @version $Revision: 1.1.1.1 $
14  */

15 public interface Configurator
16 {
17    boolean contains(AttributeType attribute);
18
19    void setObject(AttributeType attribute, Object JavaDoc value) throws NoSuchAttachmentException;
20    void setInt(AttributeType attribute, int value) throws NoSuchAttachmentException;
21    void setBoolean(AttributeType attribute, boolean value) throws NoSuchAttachmentException;
22    void setFloat(AttributeType attribute, float value) throws NoSuchAttachmentException;
23    void setLong(AttributeType attribute, long value) throws NoSuchAttachmentException;
24    void setDouble(AttributeType attribute, double value) throws NoSuchAttachmentException;
25    void setChar(AttributeType attribute, char value) throws NoSuchAttachmentException;
26    void setShort(AttributeType attribute, short value) throws NoSuchAttachmentException;
27    void setByte(AttributeType attribute, byte value) throws NoSuchAttachmentException;
28
29    Object JavaDoc getObject(AttributeType attribute) throws NoSuchAttachmentException;
30    int getInt(AttributeType attribute) throws NoSuchAttachmentException;
31    boolean getBoolean(AttributeType attribute) throws NoSuchAttachmentException;
32    float getFloat(AttributeType attribute) throws NoSuchAttachmentException;
33    long getLong(AttributeType attribute) throws NoSuchAttachmentException;
34    double getDouble(AttributeType attribute) throws NoSuchAttachmentException;
35    char getChar(AttributeType attribute) throws NoSuchAttachmentException;
36    short getShort(AttributeType attribute) throws NoSuchAttachmentException;
37    byte getByte(AttributeType attribute) throws NoSuchAttachmentException;
38 }
39
Popular Tags