content: package net.anotheria.moskito.webui.shared.api;
  
  import javax.management.MBeanAttributeInfo;
  import java.io.Serializable;
  
  /**
   * @author Michael König
   */
  public class MBeanAttributeWrapperAO implements Serializable{
      /**
       * SerialVersionUID.
       */
      private static final long serialVersionUID = -2365810654171860016L;
  
      private final MBeanAttributeInfo attribInfo;
      private final String value;
  
      /**
       * Constructs an MBeanAttributeWrapperAO.
       */
      public MBeanAttributeWrapperAO(final MBeanAttributeInfo attribInfo, final String value) {
          this.attribInfo = attribInfo;
          this.value = value;
      }
  
      /**
       * @return
       * @see javax.management.MBeanFeatureInfo#getDescription()
       */
      public String getDescription() {
          return attribInfo.getDescription();
      }
  
      /**
       * @return the {@link MBeanAttributeInfo}
       */
      public MBeanAttributeInfo getMBeanAttributeInfo() {
          return attribInfo;
      }
  
      /**
       * @return
       * @see javax.management.MBeanFeatureInfo#getName()
       */
      public String getName() {
          return attribInfo.getName();
      }
  
      /**
       * @return
       * @see javax.management.MBeanAttributeInfo#getType()
       */
      public String getType() {
          return attribInfo.getType();
      }
  
      /**
       * @return the current mbean attributes value
       */
      public String getValue() {
          return value;
      }
  
      /**
       * @return
       * @see javax.management.MBeanAttributeInfo#isReadable()
       */
      public boolean isReadable() {
          return attribInfo.isReadable();
      }
  
      /**
       * @return
       * @see javax.management.MBeanAttributeInfo#isWritable()
       */
      public boolean isWritable() {
          return attribInfo.isWritable();
      }
  
  }
  