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. package com.sun.corba.se.impl.monitoring;
  8. import com.sun.corba.se.spi.monitoring.MonitoredAttributeInfo;
  9. public class MonitoredAttributeInfoImpl implements MonitoredAttributeInfo {
  10. private final String description;
  11. private final Class type;
  12. private final boolean writableFlag, statisticFlag;
  13. MonitoredAttributeInfoImpl( String description, Class type,
  14. boolean isWritable, boolean isStatistic )
  15. {
  16. this.description = description;
  17. this.type = type;
  18. this.writableFlag = isWritable;
  19. this.statisticFlag = isStatistic;
  20. }
  21. public String getDescription( ) {
  22. return this.description;
  23. }
  24. public Class type( ) {
  25. return this.type;
  26. }
  27. public boolean isWritable( ) {
  28. return this.writableFlag;
  29. }
  30. public boolean isStatistic( ) {
  31. return this.statisticFlag;
  32. }
  33. }