|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.wire.binding.PropertyBinding
public class PropertyBinding
This Binding
specifies PropertyOperation
(for property injection).
A property injection is defined by a <property>
xml element.
This element must have a attribute "name" or a attribute "setter".
foo
, a setter method named setFoo
should exist.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
public class Foo { String bar; public void setBar(String bar) { this.bar = 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
by calling the setBar
method.
<objects> <object name='o' class='Foo'> <property name='bar'> <string value='hello' /> </property> </object> </objects>
ObjectBinding
,
WireParser
Constructor Summary | |
---|---|
PropertyBinding()
|
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 PropertyBinding()
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 |