|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.wire.binding.MapBinding
public class MapBinding
This Binding
specifies a MapDescriptor
.
A Map descriptor is defined by a <map>
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 Map to use.
If this attribute is not present, the HashMap
implementation is used.
Entries to add to the map can be specified with <entry>
elements.
Each <entry> must contain a <key>
element and a <value>
element.
Each <key> and <value> elements should contain a Descriptor
element.
<objects> <map name='m' class='java.util.TreeMap' > <entry> <key> <string value='foo'/> </key> <value> <object name='a' class='java.lang.Object' /> </value> </entry> <entry> <key> <string value='bar'/> </key> <value> <object name='b' class='java.lang.Object' /> </value> </entry> </map> </objects>
WireParser
Constructor Summary | |
---|---|
MapBinding()
|
Method Summary | |
---|---|
java.lang.Object |
parse(org.w3c.dom.Element element,
Parse parse,
Parser parser)
translates the given element into a domain model java object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapBinding()
Method Detail |
---|
public java.lang.Object parse(org.w3c.dom.Element element, Parse parse, Parser parser)
Binding
parse
in interface Binding
Parser
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |