public interface WriteableType extends Type
Modifier and Type | Method and Description |
---|---|
Instance |
addInstance(java.lang.String key,
java.lang.Object bean)
Adds the instance with the given key to the type
|
Instance |
addInstance(java.lang.String key,
java.lang.Object bean,
java.lang.Object metadata)
Adds the instance with the given key to the type
|
java.beans.PropertyChangeEvent[] |
modifyInstance(java.lang.String key,
java.lang.Object newBean,
java.beans.PropertyChangeEvent... changes)
Modifies the instance with the given key
|
Instance |
removeInstance(java.lang.String key)
Removes the instance with the given key from the type
|
getInstance, getInstances, getMetadata, getName, setMetadata
Instance addInstance(java.lang.String key, java.lang.Object bean)
key
- A non-null name for this beanbean
- The non-null bean to addInstance addInstance(java.lang.String key, java.lang.Object bean, java.lang.Object metadata)
key
- A non-null name for this beanbean
- The non-null bean to addmetadata
- Possibly null metadata to be associated with this beanInstance removeInstance(java.lang.String key)
key
- A non-null name for this beanjava.beans.PropertyChangeEvent[] modifyInstance(java.lang.String key, java.lang.Object newBean, java.beans.PropertyChangeEvent... changes)
key
- A non-null name or key for the bean to modifynewBean
- The new bean to use with this keychanges
- The full set of changes from the previous version. If this
is a zero-length array then the system will attempt to automatically determine
the changes made to this type and will generate the list of PropertyChangeEvent
to be associated with this modification