org.apache.tools.ant.taskdefs.optional.jmx.converter
Class SetValueConverter

java.lang.Object
  |
  +--org.apache.tools.ant.taskdefs.optional.jmx.converter.SetValueConverter
All Implemented Interfaces:
ValueConverter

public class SetValueConverter
extends java.lang.Object
implements ValueConverter

Converts a String to an equivalent java.lang.Set value.

Version:
$Id: SetValueConverter.java,v 1.2 2003/05/28 22:28:26 bdueck Exp $
Author:
Brian Dueck

Constructor Summary
SetValueConverter()
          Creates a new instance of PropertiesAttributeBuilder
 
Method Summary
 java.lang.String[] getSupportedTypes()
          Returns an array of types (Java class names, or Java primitives) this converter supports.
 java.lang.Object valueOf(java.lang.String value, java.lang.String type)
          Create an mbean attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetValueConverter

public SetValueConverter()
Creates a new instance of PropertiesAttributeBuilder
Method Detail

valueOf

public java.lang.Object valueOf(java.lang.String value,
                                java.lang.String type)
                         throws java.lang.Exception
Create an mbean attribute value. Value is expected to be in the form of a whitespace separated list of values. Examples: red, green, blue
Specified by:
valueOf in interface ValueConverter
Following copied from interface: org.apache.tools.ant.taskdefs.optional.jmx.converter.ValueConverter
Parameters:
value - The attribute value.
type - The java primitive type or class name.

getSupportedTypes

public java.lang.String[] getSupportedTypes()
Description copied from interface: ValueConverter
Returns an array of types (Java class names, or Java primitives) this converter supports.
Specified by:
getSupportedTypes in interface ValueConverter
Following copied from interface: org.apache.tools.ant.taskdefs.optional.jmx.converter.ValueConverter
Returns:
An array of supported type names.