public class

XNodeInfo

extends Object
java.lang.Object
   ↳ sun.tools.jconsole.inspector.XNodeInfo

Class Overview

This class represents the user object of the nodes in the MBean tree.

It encapsulates the node's info, i.e. the type of the node, the label to be used when displaying the node in the MBean tree, the node's tool tip text and arbitrary data which varies depending on the type of the node: an XMBean reference for MBEAN, ATTRIBUTES, OPERATIONS and NOTIFICATIONS nodes; the corresponding MBeanInfo for ATTRIBUTE, OPERATION and NOTIFICATION nodes; it is not used for NONMBEAN nodes.

Summary

Nested Classes
enum XNodeInfo.Type  
Public Constructors
XNodeInfo(XNodeInfo.Type type, Object data, String label, String tooltip)
Public Methods
Object getData()
String getLabel()
String getToolTipText()
XNodeInfo.Type getType()
String toString()
Returns a string representation of the object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public XNodeInfo (XNodeInfo.Type type, Object data, String label, String tooltip)

Public Methods

public Object getData ()

public String getLabel ()

public String getToolTipText ()

public XNodeInfo.Type getType ()

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
  • a string representation of the object.