javax.management.modelmbean
Class DescriptorSupport

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.modelmbean.DescriptorSupport
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor

public class DescriptorSupport
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor

This class represents the metadata set for a ModelMBean element. A descriptor is part of the ModelMBeanInfo, ModelMBeanNotificationInfo, ModelMBeanAttributeInfo, ModelMBeanConstructorInfo, and ModelMBeanParameterInfo.

A descriptor consists of a collection of fields. Each field is in fieldname=fieldvalue format. Field names are not case sensitive, case will be preserved on field values.

All field names and values are not predefined. New fields can be defined and added by any program. Some fields have been predefined for consistency of implementation and support by the ModelMBeanInfo, ModelMBeanAttributeInfo, ModelMBeanConstructorInfo, ModelMBeanNotificationInfo, ModelMBeanOperationInfo and ModelMBean classes.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport() definition code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport() ()
          Descriptor default constructor.
DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(javax.management.modelmbean.DescriptorSupport) definition code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(javax.management.modelmbean.DescriptorSupport) (DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport definition code for javax.management.modelmbean.DescriptorSupport  inDescr)
          Descriptor constructor taking a Descriptor as parameter.
DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(int) definition code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(int) (int initNumFields)
          Descriptor constructor.
DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(java.lang.String) definition code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  inStr)
          Descriptor constructor taking an XML String.
DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(java.lang.String[]) definition code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(java.lang.String[]) (String sample code for java.lang.String definition code for java.lang.String [] fields)
          Constructor taking fields in the fieldName=fieldValue format.
DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(java.lang.String[], java.lang.Object[]) definition code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(java.lang.String[], java.lang.Object[]) (String sample code for java.lang.String definition code for java.lang.String [] fieldNames, Object sample code for java.lang.Object definition code for java.lang.Object [] fieldValues)
          Constructor taking field names and field values.
 
Method Summary
 Object sample code for java.lang.Object definition code for java.lang.Object clone sample code for javax.management.modelmbean.DescriptorSupport.clone() definition code for javax.management.modelmbean.DescriptorSupport.clone() ()
          Returns a new Descriptor which is a duplicate of the Descriptor.
 String sample code for java.lang.String definition code for java.lang.String [] getFieldNames sample code for javax.management.modelmbean.DescriptorSupport.getFieldNames() definition code for javax.management.modelmbean.DescriptorSupport.getFieldNames() ()
          Returns all the fields names in the descriptor.
 String sample code for java.lang.String definition code for java.lang.String [] getFields sample code for javax.management.modelmbean.DescriptorSupport.getFields() definition code for javax.management.modelmbean.DescriptorSupport.getFields() ()
          Returns all the fields in the descriptor.
 Object sample code for java.lang.Object definition code for java.lang.Object getFieldValue sample code for javax.management.modelmbean.DescriptorSupport.getFieldValue(java.lang.String) definition code for javax.management.modelmbean.DescriptorSupport.getFieldValue(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  inFieldName)
          Returns the value for a specific fieldname.
 Object sample code for java.lang.Object definition code for java.lang.Object [] getFieldValues sample code for javax.management.modelmbean.DescriptorSupport.getFieldValues(java.lang.String[]) definition code for javax.management.modelmbean.DescriptorSupport.getFieldValues(java.lang.String[]) (String sample code for java.lang.String definition code for java.lang.String [] fieldNames)
          Returns all the field values in the descriptor as an array of Objects.
 boolean isValid sample code for javax.management.modelmbean.DescriptorSupport.isValid() definition code for javax.management.modelmbean.DescriptorSupport.isValid() ()
          Returns true if all of the fields have legal values given their names.
 void removeField sample code for javax.management.modelmbean.DescriptorSupport.removeField(java.lang.String) definition code for javax.management.modelmbean.DescriptorSupport.removeField(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  fieldName)
          Removes a field from the descriptor.
 void setField sample code for javax.management.modelmbean.DescriptorSupport.setField(java.lang.String, java.lang.Object) definition code for javax.management.modelmbean.DescriptorSupport.setField(java.lang.String, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  inFieldName, Object sample code for java.lang.Object definition code for java.lang.Object  fieldValue)
          Sets the string value for a specific fieldname.
 void setFields sample code for javax.management.modelmbean.DescriptorSupport.setFields(java.lang.String[], java.lang.Object[]) definition code for javax.management.modelmbean.DescriptorSupport.setFields(java.lang.String[], java.lang.Object[]) (String sample code for java.lang.String definition code for java.lang.String [] fieldNames, Object sample code for java.lang.Object definition code for java.lang.Object [] fieldValues)
          Sets all Fields in the list to the new value with the same index in the fieldValue array.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.management.modelmbean.DescriptorSupport.toString() definition code for javax.management.modelmbean.DescriptorSupport.toString() ()
          Returns a human readable string representing the descriptor.
 String sample code for java.lang.String definition code for java.lang.String toXMLString sample code for javax.management.modelmbean.DescriptorSupport.toXMLString() definition code for javax.management.modelmbean.DescriptorSupport.toXMLString() ()
          Returns an XML String representing the descriptor.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport() definition code for javax.management.modelmbean.DescriptorSupport()

public DescriptorSupport()
Descriptor default constructor. Default initial descriptor size is 20. It will grow as needed.
Note that the created empty descriptor is not a valid descriptor (the method isValid sample code for javax.management.modelmbean.DescriptorSupport.isValid() definition code for javax.management.modelmbean.DescriptorSupport.isValid() returns false)


DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport(int) definition code for javax.management.modelmbean.DescriptorSupport(int)

public DescriptorSupport(int initNumFields)
                  throws MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                         RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException 
Descriptor constructor. Takes as parameter the initial capacity of the Map that stores the descriptor fields. Capacity will grow as needed.
Note that the created empty descriptor is not a valid descriptor (the method isValid sample code for javax.management.modelmbean.DescriptorSupport.isValid() definition code for javax.management.modelmbean.DescriptorSupport.isValid() returns false).

Parameters:
initNumFields - The initial capacity of the Map that stores the descriptor fields.
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - for illegal value for initNumFields (<= 0)
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - Wraps a distributed communication Exception.

DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport(javax.management.modelmbean.DescriptorSupport) definition code for javax.management.modelmbean.DescriptorSupport(javax.management.modelmbean.DescriptorSupport)

public DescriptorSupport(DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport definition code for javax.management.modelmbean.DescriptorSupport  inDescr)
Descriptor constructor taking a Descriptor as parameter. Creates a new descriptor initialized to the values of the descriptor passed in parameter.

Parameters:
inDescr - the descriptor to be used to initialize the constructed descriptor. If it is null or contains no descriptor fields, an empty Descriptor will be created.

DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport(java.lang.String) definition code for javax.management.modelmbean.DescriptorSupport(java.lang.String)

public DescriptorSupport(String sample code for java.lang.String definition code for java.lang.String  inStr)
                  throws MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                         RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException ,
                         XMLParseException sample code for javax.management.modelmbean.XMLParseException definition code for javax.management.modelmbean.XMLParseException 

Descriptor constructor taking an XML String.

The format of the XML string is not defined, but an implementation must ensure that the string returned by toXMLString() sample code for javax.management.modelmbean.DescriptorSupport.toXMLString() definition code for javax.management.modelmbean.DescriptorSupport.toXMLString() on an existing descriptor can be used to instantiate an equivalent descriptor using this constructor.

In this implementation, all field values will be created as Strings. If the field values are not Strings, the programmer will have to reset or convert these fields correctly.

Parameters:
inStr - An XML-formatted string used to populate this Descriptor. The format is not defined, but any implementation must ensure that the string returned by method toXMLString sample code for javax.management.modelmbean.DescriptorSupport.toXMLString() definition code for javax.management.modelmbean.DescriptorSupport.toXMLString() on an existing descriptor can be used to instantiate an equivalent descriptor when instantiated using this constructor.
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - If the String inStr passed in parameter is null
XMLParseException sample code for javax.management.modelmbean.XMLParseException definition code for javax.management.modelmbean.XMLParseException - XML parsing problem while parsing the input String
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - Wraps a distributed communication Exception.

DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport(java.lang.String[], java.lang.Object[]) definition code for javax.management.modelmbean.DescriptorSupport(java.lang.String[], java.lang.Object[])

public DescriptorSupport(String sample code for java.lang.String definition code for java.lang.String [] fieldNames,
                         Object sample code for java.lang.Object definition code for java.lang.Object [] fieldValues)
                  throws RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException 
Constructor taking field names and field values. The array and array elements cannot be null.

Parameters:
fieldNames - String array of field names. No elements of this array can be null.
fieldValues - Object array of the corresponding field values. Elements of the array can be null. The fieldValue must be valid for the fieldName (as defined in method isValid sample code for javax.management.modelmbean.DescriptorSupport.isValid() definition code for javax.management.modelmbean.DescriptorSupport.isValid() )

Note: array sizes of parameters should match. If both arrays are null or empty, then an empty descriptor is created.

Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - for illegal value for field Names or field Values. The array lengths must be equal. If the descriptor construction fails for any reason, this exception will be thrown.

DescriptorSupport sample code for javax.management.modelmbean.DescriptorSupport(java.lang.String[]) definition code for javax.management.modelmbean.DescriptorSupport(java.lang.String[])

public DescriptorSupport(String sample code for java.lang.String definition code for java.lang.String [] fields)
Constructor taking fields in the fieldName=fieldValue format.

Parameters:
fields - String array with each element containing a field name and value. If this array is null or empty, then the default constructor will be executed. Null strings or empty strings will be ignored.

All field values should be Strings. If the field values are not Strings, the programmer will have to reset or convert these fields correctly.

Note: Each string should be of the form fieldName=fieldValue.

Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - for illegal value for field Names or field Values. The field must contain an "=". "=fieldValue", "fieldName", and "fieldValue" are illegal. FieldName cannot be null. "fieldName=" will cause the value to be null. If the descriptor construction fails for any reason, this exception will be thrown.
Method Detail

getFieldValue sample code for javax.management.modelmbean.DescriptorSupport.getFieldValue(java.lang.String) definition code for javax.management.modelmbean.DescriptorSupport.getFieldValue(java.lang.String)

public Object sample code for java.lang.Object definition code for java.lang.Object  getFieldValue(String sample code for java.lang.String definition code for java.lang.String  inFieldName)
                     throws RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException 
Returns the value for a specific fieldname.

Specified by:
getFieldValue sample code for javax.management.Descriptor.getFieldValue(java.lang.String) definition code for javax.management.Descriptor.getFieldValue(java.lang.String) in interface Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor
Parameters:
inFieldName - The field name in question; if not found, null is returned.
Returns:
An Object representing the field value
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - for illegal value (null or empty string) for field Names.

setField sample code for javax.management.modelmbean.DescriptorSupport.setField(java.lang.String, java.lang.Object) definition code for javax.management.modelmbean.DescriptorSupport.setField(java.lang.String, java.lang.Object)

public void setField(String sample code for java.lang.String definition code for java.lang.String  inFieldName,
                     Object sample code for java.lang.Object definition code for java.lang.Object  fieldValue)
              throws RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException 
Sets the string value for a specific fieldname. The value must be valid for the field (as defined in method isValid sample code for javax.management.modelmbean.DescriptorSupport.isValid() definition code for javax.management.modelmbean.DescriptorSupport.isValid() ). If the field does not exist, it is added at the end of the Descriptor. If it does exist, the value is replaced.

Specified by:
setField sample code for javax.management.Descriptor.setField(java.lang.String, java.lang.Object) definition code for javax.management.Descriptor.setField(java.lang.String, java.lang.Object) in interface Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor
Parameters:
inFieldName - The field name to be set. Must not be null or empty string.
fieldValue - The field value to be set for the field name. Can be null or empty string.
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - for illegal value for field Names.

getFields sample code for javax.management.modelmbean.DescriptorSupport.getFields() definition code for javax.management.modelmbean.DescriptorSupport.getFields()

public String sample code for java.lang.String definition code for java.lang.String [] getFields()
Returns all the fields in the descriptor. The order is not the order in which the fields were set.

Specified by:
getFields sample code for javax.management.Descriptor.getFields() definition code for javax.management.Descriptor.getFields() in interface Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor
Returns:
String array of fields in the format fieldName=fieldValue. If there are no fields in the descriptor, then an empty String array is returned. If a fieldValue is not a String then the toString() method is called on it and its returned value is used as the value for the field enclosed in parenthesis.
See Also:
setFields(java.lang.String[], java.lang.Object[]) sample code for javax.management.modelmbean.DescriptorSupport.setFields(java.lang.String[], java.lang.Object[]) definition code for javax.management.modelmbean.DescriptorSupport.setFields(java.lang.String[], java.lang.Object[])

getFieldNames sample code for javax.management.modelmbean.DescriptorSupport.getFieldNames() definition code for javax.management.modelmbean.DescriptorSupport.getFieldNames()

public String sample code for java.lang.String definition code for java.lang.String [] getFieldNames()
Returns all the fields names in the descriptor. The order is not the order in which the fields were set.

Specified by:
getFieldNames sample code for javax.management.Descriptor.getFieldNames() definition code for javax.management.Descriptor.getFieldNames() in interface Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor
Returns:
String array of fields names. If the descriptor is empty, you will get an empty array.

getFieldValues sample code for javax.management.modelmbean.DescriptorSupport.getFieldValues(java.lang.String[]) definition code for javax.management.modelmbean.DescriptorSupport.getFieldValues(java.lang.String[])

public Object sample code for java.lang.Object definition code for java.lang.Object [] getFieldValues(String sample code for java.lang.String definition code for java.lang.String [] fieldNames)
Returns all the field values in the descriptor as an array of Objects. The returned values are in the same order as the fieldNames String array parameter.

Specified by:
getFieldValues sample code for javax.management.Descriptor.getFieldValues(java.lang.String[]) definition code for javax.management.Descriptor.getFieldValues(java.lang.String[]) in interface Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor
Parameters:
fieldNames - String array of the names of the fields that the values should be returned for.
If the array is empty then an empty array will be returned.
If the array is 'null' then all values will be returned. The order is not the order in which the fields were set.
If a field name in the array does not exist, then null is returned for the matching array element being returned.
Returns:
Object array of field values. If the descriptor is empty, you will get an empty array.

setFields sample code for javax.management.modelmbean.DescriptorSupport.setFields(java.lang.String[], java.lang.Object[]) definition code for javax.management.modelmbean.DescriptorSupport.setFields(java.lang.String[], java.lang.Object[])

public void setFields(String sample code for java.lang.String definition code for java.lang.String [] fieldNames,
                      Object sample code for java.lang.Object definition code for java.lang.Object [] fieldValues)
               throws RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException 
Sets all Fields in the list to the new value with the same index in the fieldValue array. Array sizes must match. The field value will be validated before it is set (by calling the method isValid sample code for javax.management.modelmbean.DescriptorSupport.isValid() definition code for javax.management.modelmbean.DescriptorSupport.isValid() ). If it is not valid, then an exception will be thrown. If the arrays are empty, then no change will take effect.

Specified by:
setFields sample code for javax.management.Descriptor.setFields(java.lang.String[], java.lang.Object[]) definition code for javax.management.Descriptor.setFields(java.lang.String[], java.lang.Object[]) in interface Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor
Parameters:
fieldNames - String array of field names. The array and array elements cannot be null.
fieldValues - Object array of the corresponding field values. The array cannot be null. Elements of the array can be null.
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - for illegal value for field Names or field Values. Neither can be null. The array lengths must be equal.
See Also:
getFields() sample code for javax.management.modelmbean.DescriptorSupport.getFields() definition code for javax.management.modelmbean.DescriptorSupport.getFields()

clone sample code for javax.management.modelmbean.DescriptorSupport.clone() definition code for javax.management.modelmbean.DescriptorSupport.clone()

public Object sample code for java.lang.Object definition code for java.lang.Object  clone()
             throws RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException 
Returns a new Descriptor which is a duplicate of the Descriptor.

Specified by:
clone sample code for javax.management.Descriptor.clone() definition code for javax.management.Descriptor.clone() in interface Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor
Overrides:
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a clone of this instance.
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - for illegal value for field Names or field Values. If the descriptor construction fails for any reason, this exception will be thrown.
See Also:
Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

removeField sample code for javax.management.modelmbean.DescriptorSupport.removeField(java.lang.String) definition code for javax.management.modelmbean.DescriptorSupport.removeField(java.lang.String)

public void removeField(String sample code for java.lang.String definition code for java.lang.String  fieldName)
Removes a field from the descriptor.

Specified by:
removeField sample code for javax.management.Descriptor.removeField(java.lang.String) definition code for javax.management.Descriptor.removeField(java.lang.String) in interface Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor
Parameters:
fieldName - String name of the field to be removed. If the field is not found no exception is thrown.

isValid sample code for javax.management.modelmbean.DescriptorSupport.isValid() definition code for javax.management.modelmbean.DescriptorSupport.isValid()

public boolean isValid()
                throws RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException 
Returns true if all of the fields have legal values given their names.

This implementation does not support interoperating with a directory or lookup service. Thus, conforming to the specification, no checking is done on the "export" field.

Otherwise this implementation returns false if:

Specified by:
isValid sample code for javax.management.Descriptor.isValid() definition code for javax.management.Descriptor.isValid() in interface Descriptor sample code for javax.management.Descriptor definition code for javax.management.Descriptor
Returns:
true if the values are legal.
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - If the validity checking fails for any reason, this exception will be thrown.

toXMLString sample code for javax.management.modelmbean.DescriptorSupport.toXMLString() definition code for javax.management.modelmbean.DescriptorSupport.toXMLString()

public String sample code for java.lang.String definition code for java.lang.String  toXMLString()

Returns an XML String representing the descriptor.

The format is not defined, but an implementation must ensure that the string returned by this method can be used to build an equivalent descriptor when instantiated using the constructor DescriptorSupport(String inStr) sample code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(java.lang.String) definition code for javax.management.modelmbean.DescriptorSupport.DescriptorSupport(java.lang.String) .

Fields which are not String objects will have toString() called on them to create the value. The value will be enclosed in parentheses. It is not guaranteed that you can reconstruct these objects unless they have been specifically set up to support toString() in a meaningful format and have a matching constructor that accepts a String in the same format.

If the descriptor is empty the following String is returned: <Descriptor></Descriptor>

Returns:
the XML string.
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - for illegal value for field Names or field Values. If the XML formated string construction fails for any reason, this exception will be thrown.

toString sample code for javax.management.modelmbean.DescriptorSupport.toString() definition code for javax.management.modelmbean.DescriptorSupport.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a human readable string representing the descriptor. The string will be in the format of "fieldName=fieldValue,fieldName2=fieldValue2,..."
If there are no fields in the descriptor, then an empty String is returned.
If a fieldValue is an object then the toString() method is called on it and its returned value is used as the value for the field enclosed in parenthesis.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of the object.
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - for illegal value for field Names or field Values. If the descriptor string fails for any reason, this exception will be thrown.