1 58 package org.apache.ecs.vxml; 59 60 65 public class Catch extends VXMLElement 66 { 67 68 72 public Catch() 73 { 74 super("catch"); 75 } 76 77 78 84 public Catch(String event, String count, String cond) 85 { 86 this(); 87 setEvent(event); 88 setCount(count); 89 setCond(cond); 90 } 91 92 96 public Catch(String event) 97 { 98 this(); 99 setEvent(event); 100 } 101 102 107 public Catch(String event, String count) 108 { 109 this(); 110 setEvent(event); 111 setCount(count); 112 } 113 114 118 public Catch setEvent(String event) 119 { 120 addAttribute("event", event); 121 return this; 122 } 123 124 128 public Catch setCount(String count) 129 { 130 addAttribute("count", count); 131 return this; 132 } 133 134 138 public Catch setCond(String cond) 139 { 140 addAttribute("cond", cond); 141 return this; 142 } 143 144 145 } 146 | Popular Tags |