org.jbpm.wire.binding
Class BooleanBinding

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

public class BooleanBinding
extends BasicTypeBinding

This Binding parses to a TrueDescriptor or FalseDescriptor.

Standard declaration

A boolean descriptor is defined by a <boolean> xml element.

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

This element must have an attribute "value", which specifies the value of the object.

Other possible declaration

A 'true' booleanDescriptor can be defined by the <true> xml element (see TrueBinding).

A 'false' booleanDescriptor can be defined by the <false> xml element (see FalseBinding).

The two elements can have an attribute "name", which specifies the name of the created object in the WireContext.

Example

The following Xml declaration will create
 <objects>
   <boolean name='b' value='true' />
   <true name='b1' />
   <false name='b2' />
 </objects>

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

Constructor Summary
BooleanBinding()
           
 
Method Summary
protected  AbstractDescriptor createDescriptor(java.lang.String value)
           
 
Methods inherited from class org.jbpm.wire.binding.BasicTypeBinding
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanBinding

public BooleanBinding()
Method Detail

createDescriptor

protected AbstractDescriptor createDescriptor(java.lang.String value)
Specified by:
createDescriptor in class BasicTypeBinding