1 23 24 29 30 package com.sun.enterprise.tools.common.dd.ejb; 31 32 import org.w3c.dom.*; 33 import org.netbeans.modules.schema2beans.*; 34 import java.beans.*; 35 import java.util.*; 36 37 39 public class IorSecurityConfig extends com.sun.enterprise.tools.common.dd.SunBaseBean 40 { 41 42 static Vector comparators = new Vector(); 43 44 static public final String TRANSPORT_CONFIG = "TransportConfig"; static public final String AS_CONTEXT = "AsContext"; static public final String SAS_CONTEXT = "SasContext"; 48 public IorSecurityConfig() { 49 this(Common.USE_DEFAULT_VALUES); 50 } 51 52 public IorSecurityConfig(int options) 53 { 54 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); 55 this.createProperty("transport-config", TRANSPORT_CONFIG, 58 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 59 TransportConfig.class); 60 this.createProperty("as-context", AS_CONTEXT, 62 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 63 AsContext.class); 64 this.createProperty("sas-context", SAS_CONTEXT, 66 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 67 SasContext.class); 68 this.initialize(options); 69 } 70 71 void initialize(int options) 73 { 74 75 } 76 77 public void setTransportConfig(TransportConfig value) { 79 this.setValue(TRANSPORT_CONFIG, value); 80 } 81 82 public TransportConfig getTransportConfig() { 84 return (TransportConfig)this.getValue(TRANSPORT_CONFIG); 85 } 86 87 public void setAsContext(AsContext value) { 89 this.setValue(AS_CONTEXT, value); 90 } 91 92 public AsContext getAsContext() { 94 return (AsContext)this.getValue(AS_CONTEXT); 95 } 96 97 public void setSasContext(SasContext value) { 99 this.setValue(SAS_CONTEXT, value); 100 } 101 102 public SasContext getSasContext() { 104 return (SasContext)this.getValue(SAS_CONTEXT); 105 } 106 107 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 109 comparators.add(c); 110 } 111 112 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 114 comparators.remove(c); 115 } 116 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 117 boolean restrictionFailure = false; 118 if (getTransportConfig() != null) { 120 getTransportConfig().validate(); 121 } 122 if (getAsContext() != null) { 124 getAsContext().validate(); 125 } 126 if (getSasContext() != null) { 128 getSasContext().validate(); 129 } 130 } 131 132 public void dump(StringBuffer str, String indent){ 134 String s; 135 Object o; 136 org.netbeans.modules.schema2beans.BaseBean n; 137 str.append(indent); 138 str.append("TransportConfig"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getTransportConfig(); 140 if (n != null) 141 n.dump(str, indent + "\t"); else 143 str.append(indent+"\tnull"); this.dumpAttributes(TRANSPORT_CONFIG, 0, str, indent); 145 146 str.append(indent); 147 str.append("AsContext"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getAsContext(); 149 if (n != null) 150 n.dump(str, indent + "\t"); else 152 str.append(indent+"\tnull"); this.dumpAttributes(AS_CONTEXT, 0, str, indent); 154 155 str.append(indent); 156 str.append("SasContext"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getSasContext(); 158 if (n != null) 159 n.dump(str, indent + "\t"); else 161 str.append(indent+"\tnull"); this.dumpAttributes(SAS_CONTEXT, 0, str, indent); 163 164 } 165 public String dumpBeanNode(){ 166 StringBuffer str = new StringBuffer (); 167 str.append("IorSecurityConfig\n"); this.dump(str, "\n "); return str.toString(); 170 }} 171 172 174 175 1019 | Popular Tags |