|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.management.modelmbean.DescriptorSupport
Constructor Summary | |
DescriptorSupport()
|
|
DescriptorSupport(java.lang.String[] pairs)
|
|
DescriptorSupport(java.lang.String[] names,
java.lang.Object[] values)
|
Method Summary | |
java.lang.Object |
clone()
Returns a new Descriptor of which is a duplicate of this Descriptor |
java.lang.String[] |
getFieldNames()
Return all the field names as an array of String. |
java.lang.String[] |
getFields()
Returns all the fields contained in this Descriptor as
an array. |
java.lang.Object |
getFieldValue(java.lang.String name)
Returns the field value of a given field name. |
java.lang.Object[] |
getFieldValues(java.lang.String[] names)
Return all field values as an array using the given field names array. |
boolean |
isValid()
Returns true if fieldValues are checked to be sure they are legal for the fieldNames. |
void |
removeField(java.lang.String name)
Remove a field using the given field name. |
void |
setField(java.lang.String name,
java.lang.Object value)
Sets a field name and field value. |
void |
setFields(java.lang.String[] names,
java.lang.Object[] values)
Sets the given fieldNames against the givent fieldValues. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DescriptorSupport()
public DescriptorSupport(java.lang.String[] pairs)
public DescriptorSupport(java.lang.String[] names, java.lang.Object[] values)
Method Detail |
public java.lang.Object clone() throws RuntimeOperationsException
Descriptor
clone
in interface Descriptor
clone
in class java.lang.Object
RuntimeOperationsException
public java.lang.Object getFieldValue(java.lang.String name) throws RuntimeOperationsException
Descriptor
getFieldValue
in interface Descriptor
name
- The field name where the value being retrieved is for.
RuntimeOperationsException
public void setField(java.lang.String name, java.lang.Object value) throws RuntimeOperationsException
Descriptor
setField
in interface Descriptor
name
- The name of the field to set againtsvalue
- The value for the given field name being set
RuntimeOperationsException
- If values for fieldName or fieldValue
are illegal or the description construction fails, then
this exception will be thrownpublic void removeField(java.lang.String name)
Descriptor
Note that this method will be silent if no such field is found.
removeField
in interface Descriptor
name
- The field name to be removed.public java.lang.String[] getFieldNames()
Descriptor
Note that this method will return an empty array if the
Descriptor
is empty.
getFieldNames
in interface Descriptor
public java.lang.Object[] getFieldValues(java.lang.String[] names)
Descriptor
Note that the order of the returned Object[] is the same as the order of the field name argument.
getFieldValues
in interface Descriptor
names
- The array of fieldnames
public java.lang.String[] getFields()
Descriptor
Descriptor
as
an array.
getFields
in interface Descriptor
public void setFields(java.lang.String[] names, java.lang.Object[] values) throws RuntimeOperationsException
Descriptor
setFields
in interface Descriptor
RuntimeOperationsException
- if fieldNames or fieldValues contains
illegal values.public boolean isValid() throws RuntimeOperationsException
Descriptor
isValid
in interface Descriptor
RuntimeOperationsException
- If the validity checking fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |