Methods Summary |
---|
public java.lang.Object | clone()Returns a new Descriptor which is a duplicate of the Descriptor.
|
public java.lang.String[] | getFieldNames()Returns all the fields names in the descriptor.
|
public java.lang.Object | getFieldValue(java.lang.String fieldName)Returns the value for a specific fieldname.
|
public java.lang.Object[] | getFieldValues(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.
|
public java.lang.String[] | getFields()Returns all of the fields contained in this descriptor as a string array.
|
public boolean | isValid()Returns true if all of the fields have legal values given their
names.
|
public void | removeField(java.lang.String fieldName)Removes a field from the descriptor.
|
public void | setField(java.lang.String fieldName, java.lang.Object fieldValue)Sets the value for a specific fieldname. The field value will be validated before
it is set. If it is not valid, then an exception will be thrown. This will modify
an existing field or add a new field.
|
public void | setFields(java.lang.String[] fieldNames, java.lang.Object[] fieldValues)Sets all Fields in the list to the new value in with the same index
in the fieldValue array. Array sizes must match.
The field value will be validated before it is set.
If it is not valid, then an exception will be thrown.
If the arrays are empty, then no change will take effect.
|