org.jbpm.wire.binding
Class SetBinding

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

public class SetBinding
extends AbstractCollectionBinding

This Binding specifies a SetDescriptor.

A Set descriptor is defined by a <set> 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 Set to use. If this attribute is not present, the HashSet implementation is used.

Set 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 TreeSet, and store it under the name 's'. The set will contain two elements.
 <objects>
   <set name='s' class='java.util.TreeSet' >
     <string value='foo'/>
     <object name='a' class='java.lang.Object' />
   </set>
 </objects>

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

Constructor Summary
SetBinding()
           
 
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

SetBinding

public SetBinding()
Method Detail

createDescriptor

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

getCollectionInterface

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