MySnmpCrawler API

snmp.mbean
Class MBeanAttribute

java.lang.Object
  |
  +--snmp.mbean.MBeanAttribute

public class MBeanAttribute
extends java.lang.Object

The class collects all of the information about the MBean attribute.

Version:
$Revision: 0.1 $ $Date: 2004/03/09 06:03:53 $
Author:
Scott Cheng

Field Summary
private  java.lang.String name
           
private  boolean readable
           
private  java.lang.String type
           
private  java.lang.Object value
           
private  boolean writable
           
 
Constructor Summary
MBeanAttribute()
          The default constructor.
MBeanAttribute(java.lang.String name)
          Constructs the MBeanAttribute object with the attribute name.
MBeanAttribute(java.lang.String name, java.lang.Object value)
          Constructs the MBeanAttribute object with the attribute name and value.
MBeanAttribute(java.lang.String name, java.lang.Object value, java.lang.String type, boolean readable, boolean writable)
          Constructs the MBeanAttribute object with the attribute name, value, datatype, readable, and writable flag.
 
Method Summary
 java.lang.String getName()
          Gets the attribute name.
 java.lang.String getType()
          Gets the attribute type.
 java.lang.Object getValue()
          Gets the attribute value.
 boolean isReadable()
          Checks the readable flag.
 boolean isWritable()
          Checks the writable flag.
 void setName(java.lang.String name)
          Sets the attribute name.
 void setType(java.lang.String type)
          Sets the attribute type.
 void setValue(java.lang.Object value)
          Sets the attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

value

private java.lang.Object value

type

private java.lang.String type

readable

private boolean readable

writable

private boolean writable
Constructor Detail

MBeanAttribute

public MBeanAttribute()
The default constructor.


MBeanAttribute

public MBeanAttribute(java.lang.String name)
Constructs the MBeanAttribute object with the attribute name.

Parameters:
name - The attribute name.

MBeanAttribute

public MBeanAttribute(java.lang.String name,
                      java.lang.Object value)
Constructs the MBeanAttribute object with the attribute name and value.

Parameters:
name - The attribute name.
value - The attribute value.

MBeanAttribute

public MBeanAttribute(java.lang.String name,
                      java.lang.Object value,
                      java.lang.String type,
                      boolean readable,
                      boolean writable)
Constructs the MBeanAttribute object with the attribute name, value, datatype, readable, and writable flag.

Parameters:
name - The attribute name.
value - The attribute value.
type - The attribute datatype.
readable - The attribute readable flag.
writable - The attribute writable flag.
Method Detail

getName

public java.lang.String getName()
Gets the attribute name.

Returns:
The attribute name.

setName

public void setName(java.lang.String name)
Sets the attribute name.

Parameters:
name - The attribute name.

getValue

public java.lang.Object getValue()
Gets the attribute value.

Returns:
The attribute value.

setValue

public void setValue(java.lang.Object value)
Sets the attribute value.

Parameters:
value - The attribute value.

getType

public java.lang.String getType()
Gets the attribute type.

Returns:
The attribute type.

setType

public void setType(java.lang.String type)
Sets the attribute type.

Parameters:
type - The attribute type.

isReadable

public boolean isReadable()
Checks the readable flag.

Returns:
The readble flag.

isWritable

public boolean isWritable()
Checks the writable flag.

Returns:
The writable flag.

MySnmpCrawler API