KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > monitoring > MonitoredAttributeInfoImpl


1 /*
2  * @(#)MonitoredAttributeInfoImpl.java 1.2 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.monitoring;
9
10 import com.sun.corba.se.spi.monitoring.MonitoredAttributeInfo;
11
12 public class MonitoredAttributeInfoImpl implements MonitoredAttributeInfo {
13     private final String JavaDoc description;
14     private final Class JavaDoc type;
15     private final boolean writableFlag, statisticFlag;
16
17     MonitoredAttributeInfoImpl( String JavaDoc description, Class JavaDoc type,
18         boolean isWritable, boolean isStatistic )
19     {
20         this.description = description;
21         this.type = type;
22         this.writableFlag = isWritable;
23         this.statisticFlag = isStatistic;
24     }
25
26     public String JavaDoc getDescription( ) {
27         return this.description;
28     }
29
30     public Class JavaDoc type( ) {
31         return this.type;
32     }
33
34     public boolean isWritable( ) {
35          return this.writableFlag;
36     }
37
38     public boolean isStatistic( ) {
39          return this.statisticFlag;
40     }
41 }
42
43     
44
Popular Tags