1 23 24 31 32 package com.sun.enterprise.tools.common.dd; 33 34 import org.w3c.dom.*; 35 import org.netbeans.modules.schema2beans.*; 36 import java.beans.*; 37 import java.util.*; 38 39 41 public class MessageSecurityBinding extends org.netbeans.modules.schema2beans.BaseBean 42 { 43 44 static Vector comparators = new Vector(); 45 private static final org.netbeans.modules.schema2beans.Version runtimeVersion = new org.netbeans.modules.schema2beans.Version(5, 0, 0); 46 47 static public final String AUTHLAYER = "AuthLayer"; static public final String PROVIDERID = "ProviderId"; static public final String MESSAGE_SECURITY = "MessageSecurity"; 51 public MessageSecurityBinding() { 52 this(Common.USE_DEFAULT_VALUES); 53 } 54 55 public MessageSecurityBinding(int options) 56 { 57 super(comparators, runtimeVersion); 58 initPropertyTables(1); 60 this.createProperty("message-security", MESSAGE_SECURITY, 62 Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 63 MessageSecurity.class); 64 this.initialize(options); 65 } 66 67 void initialize(int options) { 69 70 } 71 72 public void setAuthLayer(java.lang.String value) { 74 setAttributeValue(AUTHLAYER, value); 75 } 76 77 public java.lang.String getAuthLayer() { 79 return getAttributeValue(AUTHLAYER); 80 } 81 82 public void setProviderId(java.lang.String value) { 84 setAttributeValue(PROVIDERID, value); 85 } 86 87 public java.lang.String getProviderId() { 89 return getAttributeValue(PROVIDERID); 90 } 91 92 public void setMessageSecurity(int index, MessageSecurity value) { 94 this.setValue(MESSAGE_SECURITY, index, value); 95 } 96 97 public MessageSecurity getMessageSecurity(int index) { 99 return (MessageSecurity)this.getValue(MESSAGE_SECURITY, index); 100 } 101 102 public int sizeMessageSecurity() { 104 return this.size(MESSAGE_SECURITY); 105 } 106 107 public void setMessageSecurity(MessageSecurity[] value) { 109 this.setValue(MESSAGE_SECURITY, value); 110 } 111 112 public MessageSecurity[] getMessageSecurity() { 114 return (MessageSecurity[])this.getValues(MESSAGE_SECURITY); 115 } 116 117 public int addMessageSecurity(com.sun.enterprise.tools.common.dd.MessageSecurity value) { 119 int positionOfNewItem = this.addValue(MESSAGE_SECURITY, value); 120 return positionOfNewItem; 121 } 122 123 public int removeMessageSecurity(com.sun.enterprise.tools.common.dd.MessageSecurity value) { 128 return this.removeValue(MESSAGE_SECURITY, value); 129 } 130 131 135 public MessageSecurity newMessageSecurity() { 136 return new MessageSecurity(); 137 } 138 139 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 141 comparators.add(c); 142 } 143 144 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 146 comparators.remove(c); 147 } 148 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 149 } 150 151 public void dump(StringBuffer str, String indent){ 153 String s; 154 Object o; 155 org.netbeans.modules.schema2beans.BaseBean n; 156 str.append(indent); 157 str.append("MessageSecurity["+this.sizeMessageSecurity()+"]"); for(int i=0; i<this.sizeMessageSecurity(); i++) 159 { 160 str.append(indent+"\t"); 161 str.append("#"+i+":"); 162 n = (org.netbeans.modules.schema2beans.BaseBean) this.getMessageSecurity(i); 163 if (n != null) 164 n.dump(str, indent + "\t"); else 166 str.append(indent+"\tnull"); this.dumpAttributes(MESSAGE_SECURITY, i, str, indent); 168 } 169 170 } 171 public String dumpBeanNode(){ 172 StringBuffer str = new StringBuffer (); 173 str.append("MessageSecurityBinding\n"); this.dump(str, "\n "); return str.toString(); 176 }} 177 178 180 | Popular Tags |