View Javadoc

1   /*
2    * Copyright 2010 Fraunhofer Gesellschaft, Munich, Germany,
3    * for its Fraunhofer Institute for Computer Architecture and Software
4    * Technology (FIRST), Berlin, Germany. All rights reserved.
5    * http://www.first.fraunhofer.de/
6    */
7   
8   package net.kwfgrid.gworkflowdl.structure;
9   
10  
11  /***
12   * interface for Data.
13   */
14  public interface Data {
15  
16      /***
17       * set data's (generic) content.
18       *
19       * @param object content to be set
20       */
21      void set(Object object) throws WorkflowFormatException;
22  
23      /***
24       * get data's generic content.
25       *
26       * @return content of token
27       */
28      Object get();
29  
30      /***
31       * only the token implementation knows
32       * how it's XML representation looks like.
33       *
34       * @return XML representation
35       */
36      String toXML();
37  
38      /***
39       *
40       * only the token implementation knows
41       * how it's XML representation looks like.
42       *
43       * @param s representation of element
44       * @exception WorkflowFormatException If the given String could not be parsed.
45       */
46      void fromXML(String s) throws WorkflowFormatException;
47  
48      Object clone();
49  
50  }