org.jbpm.wire.descriptor
Class MapDescriptor
java.lang.Object
org.jbpm.util.DefaultObservable
org.jbpm.wire.descriptor.AbstractDescriptor
org.jbpm.wire.descriptor.CollectionDescriptor
org.jbpm.wire.descriptor.MapDescriptor
- All Implemented Interfaces:
- java.io.Serializable, Observable, Descriptor
- Direct Known Subclasses:
- PropertiesDescriptor
public class MapDescriptor
- extends CollectionDescriptor
This Descriptor
creates a Map
.
If no specific implementation for the Map
is specified, a HashMap
will be used.
Entries can be added during the map initialization. The list of entries (key, value) to add must be specified with two operations:
setKeyDescriptors(List)
sets the list of the keys to generate.
CollectionDescriptor.setValueDescriptors(List)
sets the list of value associated with these keys.
The two lists must be in the same order
(the n-th element of the key list will be associated with the n-th element of the value list).
- Author:
- Tom Baeyens, Guillaume Porcher (documentation)
- See Also:
Descriptor
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapDescriptor
public MapDescriptor()
initialize
public void initialize(java.lang.Object object,
WireContext wireContext)
- Description copied from interface:
Descriptor
- called by the WireContext to initialize the specified object.
For more information about initialization, see
WireContext
section lifecycle.
- Specified by:
initialize
in interface Descriptor
- Overrides:
initialize
in class CollectionDescriptor
- Parameters:
object
- object to initialize.wireContext
- the context in which the object will be initialized.
getKeyDescriptors
public java.util.List<Descriptor> getKeyDescriptors()
setKeyDescriptors
public void setKeyDescriptors(java.util.List<Descriptor> keyDescriptors)