KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > loader > PermissionConditionDescriptor


1 package com.opensymphony.workflow.loader;
2
3 import java.io.PrintWriter JavaDoc;
4
5 import org.w3c.dom.Element JavaDoc;
6
7 /**
8  * @author jackflit
9  * Date: 2003-11-21
10  */

11 public class PermissionConditionDescriptor extends ConfigConditionDescriptor
12 {
13   protected String JavaDoc owner;
14
15   public PermissionConditionDescriptor(PaletteDescriptor palette)
16   {
17       super(palette);
18   }
19
20   public PermissionConditionDescriptor(PaletteDescriptor palette, Element JavaDoc condition)
21   {
22       super(palette, condition);
23   }
24
25   public PermissionConditionDescriptor(PermissionConditionDescriptor permission)
26   {
27       super(permission);
28     owner = permission.getOwner();
29   }
30
31   public void writeXML(PrintWriter JavaDoc writer, int indent)
32   {
33     throw new UnsupportedOperationException JavaDoc();
34   }
35
36   protected void init(Element JavaDoc condition)
37   {
38     super.init(condition);
39     owner = XMLUtil.getChildText(condition, "owner");
40   }
41
42   public String JavaDoc getOwner()
43   {
44     return owner;
45   }
46
47   public void setOwner(String JavaDoc string)
48   {
49     owner = string;
50   }
51 }
52
Popular Tags