1 58 package org.apache.ecs.vxml; 59 60 65 public class Block extends VXMLElement 66 { 67 68 72 public Block() 73 { 74 super("block"); 75 } 76 77 78 84 public Block(String name, String expr, String cond) 85 { 86 this(); 87 setName(name); 88 setExpr(expr); 89 setCond(cond); 90 } 91 92 96 public Block(String name) 97 { 98 this(); 99 setName(name); 100 } 101 102 106 public Block setName(String name) 107 { 108 addAttribute("name", name); 109 return this; 110 } 111 112 116 public Block setExpr(String expr) 117 { 118 addAttribute("expr", expr); 119 return this; 120 } 121 122 123 127 public Block setCond(String cond) 128 { 129 addAttribute("cond", cond); 130 return this; 131 } 132 } 133 | Popular Tags |