01: /**
02: * $Id: AttributeInfo.java,v 1.1 2005/02/27 04:32:11 pd109850 Exp $
03: * Copyright 2004 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.admin.common;
14:
15: /**
16: * Constants used by mbeans (and handlers) to build the attribute information
17: * and then used by consumers like cli and console to format
18: * and display appropriately.
19: */
20: public interface AttributeInfo {
21: /**
22: * type of an attribute
23: */
24: int UNKOWN_TYPE = -1;
25:
26: int SINGLE_BOOLEAN = 0;
27: int SINGLE_STRING = 1;
28: int SINGLE_NUMERIC = 2;
29:
30: //only as a placeholder, do not think this will exist
31: //int LIST_BOOLEAN = 3;
32:
33: int LIST_STRING = 4;
34: int LIST_NUMERIC = 5;
35:
36: //only as a placeholder, do not think this will exist
37: //int SINGLE_CHOICE_BOOLEAN = 6;
38:
39: int SINGLE_CHOICE_STRING = 7;
40: int SINGLE_CHOICE_NUMERIC = 8;
41:
42: //only as a placeholder, do not think this will exist
43: //int MULTIPLE_CHOICE_BOOLEAN = 9;
44:
45: int MULTIPLE_CHOICE_STRING = 10;
46: int MULTIPLE_CHOICE_NUMERIC = 11;
47:
48: /**
49: * read/write privilege of an attribute
50: */
51: int READ_WRITE = 0;
52: int READ_ONLY = 1;
53: int WRITE_ONLY = 3;
54: }
|