org.jbpm.wire.binding
Class FieldBinding

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

public class FieldBinding
extends java.lang.Object
implements Binding

This Binding specifies a FieldOperation (for field injection).

A field injection is defined by a <field> xml element.

This element has a attribute "name", which specifies the name of the field to inject.

This element should contain a child element that defines a Descriptor. This descriptor will be used to create the object that will be assigned to the field

Example

Consider the following class:
 public class Foo {
   String bar;
 }
The following Xml declaration will create an object 'o' of class 'Foo' (see ObjectDescriptor), and the value hello will be assigned to o.bar.
 <objects>
   <object name='o' class='Foo'>
     <field name='bar'>
       <string value='hello' />
     </field>
   </object>
 </objects>

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

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

FieldBinding

public FieldBinding()
Method Detail

parse

public java.lang.Object parse(org.w3c.dom.Element element,
                              Parse parse,
                              Parser parser)
Description copied from interface: Binding
translates the given element into a domain model java object. Use the parse to report problems.

Specified by:
parse in interface Binding
Returns:
the domain model java object.
See Also:
Parser