org.apache.commons.beanutils.MutableDynaClass |
Known Indirect Subclasses |
A specialized extension to DynaClass
that allows properties
to be added or removed dynamically.
WARNING - No guarantees that this will be in the final APIs ... it's here primarily to preserve some concepts that were in the original proposal for further discussion.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a new dynamic property with the specified data type, readability,
and writeability.
| |||||||||||
Add a new dynamic property with the specified data type, but with
no restrictions on readability or writeability.
| |||||||||||
Add a new dynamic property with no restrictions on data type,
readability, or writeability.
| |||||||||||
Is this DynaClass currently restricted, if so, no changes to the
existing registration of property names, data types, readability, or
writeability are allowed.
| |||||||||||
Remove the specified dynamic property, and any associated data type,
readability, and writeability, from this dynamic class.
| |||||||||||
Set the restricted state of this DynaClass to the specified value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.apache.commons.beanutils.DynaClass
|
Add a new dynamic property with the specified data type, readability, and writeability.
name | Name of the new dynamic property |
---|---|
type | Data type of the new dynamic property (null for no restrictions) |
readable | Set to true if this property value
should be readable |
writeable | Set to true if this property value
should be writeable |
IllegalArgumentException | if name is null |
---|---|
IllegalStateException | if this DynaClass is currently restricted, so no new properties can be added |
Add a new dynamic property with the specified data type, but with no restrictions on readability or writeability.
name | Name of the new dynamic property |
---|---|
type | Data type of the new dynamic property (null for no restrictions) |
IllegalArgumentException | if name is null |
---|---|
IllegalStateException | if this DynaClass is currently restricted, so no new properties can be added |
Add a new dynamic property with no restrictions on data type, readability, or writeability.
name | Name of the new dynamic property |
---|
IllegalArgumentException | if name is null |
---|---|
IllegalStateException | if this DynaClass is currently restricted, so no new properties can be added |
Is this DynaClass currently restricted, if so, no changes to the existing registration of property names, data types, readability, or writeability are allowed.
true
if this Mutable DynaClass
is restricted,
otherwise false
Remove the specified dynamic property, and any associated data type, readability, and writeability, from this dynamic class. NOTE - This does NOT cause any corresponding property values to be removed from DynaBean instances associated with this DynaClass.
name | Name of the dynamic property to remove |
---|
IllegalArgumentException | if name is null |
---|---|
IllegalStateException | if this DynaClass is currently restricted, so no properties can be removed |
Set the restricted state of this DynaClass to the specified value.
restricted | The new restricted state |
---|