public class NamedValue extends Object implements Serializable
| Constructor and Description | 
|---|
NamedValue()
Required constructor in order to be a Java Bean. 
 | 
NamedValue(String name,
          Object value)
Convenience constructor that sets the name and value. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getName()
Returns the name. 
 | 
Object | 
getValue()
Returns the value. 
 | 
Object | 
getWrappedValue()
Get the wrapped value. 
 | 
static NamedValue[] | 
mapToNamedValues(Map map)
Converts an Map of named values to NamedValue[]. 
 | 
static Map | 
namedValuesToMap(NamedValue[] namedValues)
Converts a NamedValue[] to a Map for easy access. 
 | 
void | 
setName(String name)
Sets the name. 
 | 
void | 
setValue(Object value)
Sets the value. 
 | 
void | 
setWrappedValue(Object value)
Set the wrapped value. 
 | 
String | 
toString()  | 
public final String getName()
public final void setName(String name)
public final Object getValue()
public final void setValue(Object value)
public Object getWrappedValue()
public void setWrappedValue(Object value)
public static final Map namedValuesToMap(NamedValue[] namedValues)
String.namedValues - The NamedValue[] to convert. A zero-length array
                    will result into an empty map and a null
                    array will result into a null return
                    value.public static final NamedValue[] mapToNamedValues(Map map)
map - The Map to convert. The keys in the map must be of type
             String. An empty map will result in a zero-length
             NamedValue[] and a null map will result into a
             null return value.Copyright © 2025. All rights reserved.