org.jbpm.wire.binding
Class ListBinding

java.lang.Object
  extended by org.jbpm.wire.binding.AbstractCollectionBinding
      extended by org.jbpm.wire.binding.ListBinding
All Implemented Interfaces:
Binding

public class ListBinding
extends AbstractCollectionBinding

This Binding specifies a ListDescriptor.

A List descriptor is defined by a <list> xml element.

This element can have an attribute "name", which specifies the name of the created object in the WireContext.

This element can have an attribute "class", which specifies the implementation of List to use. If this attribute is not present, the ArrayList implementation is used.

List entries

Entries to add to the list can be specified with child elements that specify the object to add.

Example

The following Xml declaration will create a ArrayList, and store it under the name 'l'. The list will contain two elements.
 <objects>
   <list name='l' >
     <string value='foo'/>
     <object name='a' class='java.lang.Object' />
   </list>
 </objects>

Author:
Tom Baeyens, Guillaume Porcher (documentation)
See Also:
WireParser

Constructor Summary
ListBinding()
           
 
Method Summary
protected  CollectionDescriptor createDescriptor()
           
protected  java.lang.Class<?> getCollectionInterface()
           
 
Methods inherited from class org.jbpm.wire.binding.AbstractCollectionBinding
parse, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListBinding

public ListBinding()
Method Detail

createDescriptor

protected CollectionDescriptor createDescriptor()
Specified by:
createDescriptor in class AbstractCollectionBinding

getCollectionInterface

protected java.lang.Class<?> getCollectionInterface()
Specified by:
getCollectionInterface in class AbstractCollectionBinding