1 19 package org.netbeans.modules.j2ee.websphere6.dd.beans; 20 21 import org.w3c.dom.*; 22 import org.netbeans.modules.schema2beans.*; 23 import java.beans.*; 24 import java.util.*; 25 29 public class PageType extends org.netbeans.modules.schema2beans.BaseBean implements DDXmiConstants { 30 31 static Vector comparators = new Vector(); 32 private static final org.netbeans.modules.schema2beans.Version runtimeVersion = new org.netbeans.modules.schema2beans.Version(4, 2, 0); 33 34 35 36 public PageType() { 37 this(Common.USE_DEFAULT_VALUES); 38 } 39 public PageType(int options) { 40 super(comparators, runtimeVersion); 41 initPropertyTables(1); 43 this.initialize(options); 44 } 45 public void initialize(int options) { 46 47 } 48 public void setDefaults() { 49 setXmiId("Page_"); 50 setName(""); 51 setUri("/"); 52 } 53 54 55 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 56 comparators.add(c); 57 } 58 59 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 60 comparators.remove(c); 61 } 62 63 public void setXmiId(String value) { 64 this.setAttributeValue(PAGES_XMI_ID,value); 65 } 66 67 public String getXmiId() { 68 return (String )this.getAttributeValue(PAGES_XMI_ID); 69 } 70 public void setName(String value) { 71 this.setAttributeValue(PAGES_NAME,value); 72 } 73 public String getName() { 74 return (String )this.getAttributeValue(PAGES_NAME); 75 } 76 public void setUri(String value) { 77 this.setAttributeValue(PAGES_URI,value); 78 } 79 public String getUri() { 80 return (String )this.getAttributeValue(PAGES_URI); 81 } 82 83 84 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 85 86 if(getXmiId()==null) { 87 throw new org.netbeans.modules.schema2beans.ValidateException("getXmiId() == null", org.netbeans.modules.schema2beans.ValidateException.FailureType.NULL_VALUE, "PageType", this); } 89 if(getName()==null) { 90 throw new org.netbeans.modules.schema2beans.ValidateException("getName() == null", org.netbeans.modules.schema2beans.ValidateException.FailureType.NULL_VALUE, "PageType", this); } 92 if(getUri()==null) { 93 throw new org.netbeans.modules.schema2beans.ValidateException("getUri() == null", org.netbeans.modules.schema2beans.ValidateException.FailureType.NULL_VALUE, "PageType", this); } 95 96 97 98 } 99 100 101 102 public void dump(StringBuffer str, String indent){ 104 String s; 105 Object o; 106 org.netbeans.modules.schema2beans.BaseBean n; 107 str.append(indent); 108 str.append("PageType"); 111 112 } 113 public String dumpBeanNode(){ 114 StringBuffer str = new StringBuffer (); 115 str.append(getClass().getName()); this.dump(str, "\n "); return str.toString(); 118 } 119 } 120 | Popular Tags |