KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > def > assign > FromLiteral


1 package org.jbpm.bpel.def.assign;
2
3 import org.jbpm.graph.exe.Token;
4
5 import org.jbpm.bpel.def.Assign.From;
6
7 /**
8  * <code>&lt;from&gt;</code> variant that allows a literal value to be given
9  * as the source value to assign to a destination.
10  * @see "WS-BPEL 2.0 &sect;9.3"
11  * @author Alejandro Guízar
12  * @version $Revision: 1.4 $ $Date: 2005/05/31 00:49:53 $
13  */

14 public class FromLiteral extends From {
15   
16   private static final long serialVersionUID = 1L;
17   private Object JavaDoc literal;
18
19   public Object JavaDoc extract(Token token) {
20     return literal;
21   }
22
23   /**
24    * Gets the literal extracted as source value.
25    * @return an instance of a XML Schema primitive data type or
26    * XML Schema element
27    */

28   public Object JavaDoc getLiteral() {
29     return literal;
30   }
31   
32   /**
33    * Sets the literal to be extracted as source value.
34    * @param literal an instance of a XML Schema primitive data type or
35    * XML Schema element
36    */

37   public void setLiteral(Object JavaDoc literal) {
38     this.literal = literal;
39   }
40 }
41
Popular Tags