001 /* 002 * XML Type: GSSUPStaticType 003 * Namespace: http://openejb.apache.org/xml/ns/corba-css-config-2.1 004 * Java type: org.apache.geronimo.corba.xbeans.csiv2.css.CSSGSSUPStaticType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.corba.xbeans.csiv2.css.impl; 009 /** 010 * An XML GSSUPStaticType(@http://openejb.apache.org/xml/ns/corba-css-config-2.1). 011 * 012 * This is a complex type. 013 */ 014 public class CSSGSSUPStaticTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.corba.xbeans.csiv2.css.CSSGSSUPStaticType 015 { 016 017 public CSSGSSUPStaticTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName USERNAME$0 = 023 new javax.xml.namespace.QName("", "username"); 024 private static final javax.xml.namespace.QName PASSWORD$2 = 025 new javax.xml.namespace.QName("", "password"); 026 private static final javax.xml.namespace.QName DOMAIN$4 = 027 new javax.xml.namespace.QName("", "domain"); 028 029 030 /** 031 * Gets the "username" attribute 032 */ 033 public java.lang.String getUsername() 034 { 035 synchronized (monitor()) 036 { 037 check_orphaned(); 038 org.apache.xmlbeans.SimpleValue target = null; 039 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USERNAME$0); 040 if (target == null) 041 { 042 return null; 043 } 044 return target.getStringValue(); 045 } 046 } 047 048 /** 049 * Gets (as xml) the "username" attribute 050 */ 051 public org.apache.xmlbeans.XmlString xgetUsername() 052 { 053 synchronized (monitor()) 054 { 055 check_orphaned(); 056 org.apache.xmlbeans.XmlString target = null; 057 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(USERNAME$0); 058 return target; 059 } 060 } 061 062 /** 063 * True if has "username" attribute 064 */ 065 public boolean isSetUsername() 066 { 067 synchronized (monitor()) 068 { 069 check_orphaned(); 070 return get_store().find_attribute_user(USERNAME$0) != null; 071 } 072 } 073 074 /** 075 * Sets the "username" attribute 076 */ 077 public void setUsername(java.lang.String username) 078 { 079 synchronized (monitor()) 080 { 081 check_orphaned(); 082 org.apache.xmlbeans.SimpleValue target = null; 083 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USERNAME$0); 084 if (target == null) 085 { 086 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(USERNAME$0); 087 } 088 target.setStringValue(username); 089 } 090 } 091 092 /** 093 * Sets (as xml) the "username" attribute 094 */ 095 public void xsetUsername(org.apache.xmlbeans.XmlString username) 096 { 097 synchronized (monitor()) 098 { 099 check_orphaned(); 100 org.apache.xmlbeans.XmlString target = null; 101 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(USERNAME$0); 102 if (target == null) 103 { 104 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(USERNAME$0); 105 } 106 target.set(username); 107 } 108 } 109 110 /** 111 * Unsets the "username" attribute 112 */ 113 public void unsetUsername() 114 { 115 synchronized (monitor()) 116 { 117 check_orphaned(); 118 get_store().remove_attribute(USERNAME$0); 119 } 120 } 121 122 /** 123 * Gets the "password" attribute 124 */ 125 public java.lang.String getPassword() 126 { 127 synchronized (monitor()) 128 { 129 check_orphaned(); 130 org.apache.xmlbeans.SimpleValue target = null; 131 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PASSWORD$2); 132 if (target == null) 133 { 134 return null; 135 } 136 return target.getStringValue(); 137 } 138 } 139 140 /** 141 * Gets (as xml) the "password" attribute 142 */ 143 public org.apache.xmlbeans.XmlString xgetPassword() 144 { 145 synchronized (monitor()) 146 { 147 check_orphaned(); 148 org.apache.xmlbeans.XmlString target = null; 149 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PASSWORD$2); 150 return target; 151 } 152 } 153 154 /** 155 * True if has "password" attribute 156 */ 157 public boolean isSetPassword() 158 { 159 synchronized (monitor()) 160 { 161 check_orphaned(); 162 return get_store().find_attribute_user(PASSWORD$2) != null; 163 } 164 } 165 166 /** 167 * Sets the "password" attribute 168 */ 169 public void setPassword(java.lang.String password) 170 { 171 synchronized (monitor()) 172 { 173 check_orphaned(); 174 org.apache.xmlbeans.SimpleValue target = null; 175 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PASSWORD$2); 176 if (target == null) 177 { 178 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PASSWORD$2); 179 } 180 target.setStringValue(password); 181 } 182 } 183 184 /** 185 * Sets (as xml) the "password" attribute 186 */ 187 public void xsetPassword(org.apache.xmlbeans.XmlString password) 188 { 189 synchronized (monitor()) 190 { 191 check_orphaned(); 192 org.apache.xmlbeans.XmlString target = null; 193 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PASSWORD$2); 194 if (target == null) 195 { 196 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PASSWORD$2); 197 } 198 target.set(password); 199 } 200 } 201 202 /** 203 * Unsets the "password" attribute 204 */ 205 public void unsetPassword() 206 { 207 synchronized (monitor()) 208 { 209 check_orphaned(); 210 get_store().remove_attribute(PASSWORD$2); 211 } 212 } 213 214 /** 215 * Gets the "domain" attribute 216 */ 217 public java.lang.String getDomain() 218 { 219 synchronized (monitor()) 220 { 221 check_orphaned(); 222 org.apache.xmlbeans.SimpleValue target = null; 223 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DOMAIN$4); 224 if (target == null) 225 { 226 return null; 227 } 228 return target.getStringValue(); 229 } 230 } 231 232 /** 233 * Gets (as xml) the "domain" attribute 234 */ 235 public org.apache.xmlbeans.XmlString xgetDomain() 236 { 237 synchronized (monitor()) 238 { 239 check_orphaned(); 240 org.apache.xmlbeans.XmlString target = null; 241 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DOMAIN$4); 242 return target; 243 } 244 } 245 246 /** 247 * True if has "domain" attribute 248 */ 249 public boolean isSetDomain() 250 { 251 synchronized (monitor()) 252 { 253 check_orphaned(); 254 return get_store().find_attribute_user(DOMAIN$4) != null; 255 } 256 } 257 258 /** 259 * Sets the "domain" attribute 260 */ 261 public void setDomain(java.lang.String domain) 262 { 263 synchronized (monitor()) 264 { 265 check_orphaned(); 266 org.apache.xmlbeans.SimpleValue target = null; 267 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DOMAIN$4); 268 if (target == null) 269 { 270 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DOMAIN$4); 271 } 272 target.setStringValue(domain); 273 } 274 } 275 276 /** 277 * Sets (as xml) the "domain" attribute 278 */ 279 public void xsetDomain(org.apache.xmlbeans.XmlString domain) 280 { 281 synchronized (monitor()) 282 { 283 check_orphaned(); 284 org.apache.xmlbeans.XmlString target = null; 285 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DOMAIN$4); 286 if (target == null) 287 { 288 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DOMAIN$4); 289 } 290 target.set(domain); 291 } 292 } 293 294 /** 295 * Unsets the "domain" attribute 296 */ 297 public void unsetDomain() 298 { 299 synchronized (monitor()) 300 { 301 check_orphaned(); 302 get_store().remove_attribute(DOMAIN$4); 303 } 304 } 305 }