public class PortableProperty
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
PortableProperty() |
PortableProperty(java.lang.String name) |
PortableProperty(java.lang.String name, java.util.List<java.lang.String> values) |
PortableProperty(java.lang.String name, java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.String value) |
static PortableProperty |
from(javax.management.openmbean.CompositeData cd)
Create an instance of the model specific class out of an associated CompositeData instance
|
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getValues() |
javax.management.openmbean.CompositeData |
toCompositeData(javax.management.openmbean.CompositeType ct)
Convert an instance of this model specific type to a CompositeData.
|
static javax.management.openmbean.CompositeType |
toCompositeType()
Returns the CompositeType that describes this model specific class
|
public PortableProperty()
@ConstructorProperties(value="name")
public PortableProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public PortableProperty(java.lang.String name,
java.lang.String value)
@ConstructorProperties(value={"name","values"})
public PortableProperty(java.lang.String name,
java.util.List<java.lang.String> values)
public void addValue(java.lang.String value)
public java.lang.String getName()
public java.util.List<java.lang.String> getValues()
public static javax.management.openmbean.CompositeType toCompositeType()
public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
ct - - This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.public static PortableProperty from(javax.management.openmbean.CompositeData cd)