001 /* 002 * XML Type: named-username-password-credentialType 003 * Namespace: http://geronimo.apache.org/xml/ns/security-2.0 004 * Java type: org.apache.geronimo.xbeans.geronimo.security.GerNamedUsernamePasswordCredentialType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.security.impl; 009 /** 010 * An XML named-username-password-credentialType(@http://geronimo.apache.org/xml/ns/security-2.0). 011 * 012 * This is a complex type. 013 */ 014 public class GerNamedUsernamePasswordCredentialTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.security.GerNamedUsernamePasswordCredentialType 015 { 016 017 public GerNamedUsernamePasswordCredentialTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName NAME$0 = 023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/security-2.0", "name"); 024 private static final javax.xml.namespace.QName USERNAME$2 = 025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/security-2.0", "username"); 026 private static final javax.xml.namespace.QName PASSWORD$4 = 027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/security-2.0", "password"); 028 029 030 /** 031 * Gets the "name" element 032 */ 033 public java.lang.String getName() 034 { 035 synchronized (monitor()) 036 { 037 check_orphaned(); 038 org.apache.xmlbeans.SimpleValue target = null; 039 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0); 040 if (target == null) 041 { 042 return null; 043 } 044 return target.getStringValue(); 045 } 046 } 047 048 /** 049 * Gets (as xml) the "name" element 050 */ 051 public org.apache.xmlbeans.XmlString xgetName() 052 { 053 synchronized (monitor()) 054 { 055 check_orphaned(); 056 org.apache.xmlbeans.XmlString target = null; 057 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0); 058 return target; 059 } 060 } 061 062 /** 063 * Sets the "name" element 064 */ 065 public void setName(java.lang.String name) 066 { 067 synchronized (monitor()) 068 { 069 check_orphaned(); 070 org.apache.xmlbeans.SimpleValue target = null; 071 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0); 072 if (target == null) 073 { 074 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0); 075 } 076 target.setStringValue(name); 077 } 078 } 079 080 /** 081 * Sets (as xml) the "name" element 082 */ 083 public void xsetName(org.apache.xmlbeans.XmlString name) 084 { 085 synchronized (monitor()) 086 { 087 check_orphaned(); 088 org.apache.xmlbeans.XmlString target = null; 089 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0); 090 if (target == null) 091 { 092 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0); 093 } 094 target.set(name); 095 } 096 } 097 098 /** 099 * Gets the "username" element 100 */ 101 public java.lang.String getUsername() 102 { 103 synchronized (monitor()) 104 { 105 check_orphaned(); 106 org.apache.xmlbeans.SimpleValue target = null; 107 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERNAME$2, 0); 108 if (target == null) 109 { 110 return null; 111 } 112 return target.getStringValue(); 113 } 114 } 115 116 /** 117 * Gets (as xml) the "username" element 118 */ 119 public org.apache.xmlbeans.XmlString xgetUsername() 120 { 121 synchronized (monitor()) 122 { 123 check_orphaned(); 124 org.apache.xmlbeans.XmlString target = null; 125 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USERNAME$2, 0); 126 return target; 127 } 128 } 129 130 /** 131 * Sets the "username" element 132 */ 133 public void setUsername(java.lang.String username) 134 { 135 synchronized (monitor()) 136 { 137 check_orphaned(); 138 org.apache.xmlbeans.SimpleValue target = null; 139 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERNAME$2, 0); 140 if (target == null) 141 { 142 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERNAME$2); 143 } 144 target.setStringValue(username); 145 } 146 } 147 148 /** 149 * Sets (as xml) the "username" element 150 */ 151 public void xsetUsername(org.apache.xmlbeans.XmlString username) 152 { 153 synchronized (monitor()) 154 { 155 check_orphaned(); 156 org.apache.xmlbeans.XmlString target = null; 157 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USERNAME$2, 0); 158 if (target == null) 159 { 160 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(USERNAME$2); 161 } 162 target.set(username); 163 } 164 } 165 166 /** 167 * Gets the "password" element 168 */ 169 public java.lang.String getPassword() 170 { 171 synchronized (monitor()) 172 { 173 check_orphaned(); 174 org.apache.xmlbeans.SimpleValue target = null; 175 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PASSWORD$4, 0); 176 if (target == null) 177 { 178 return null; 179 } 180 return target.getStringValue(); 181 } 182 } 183 184 /** 185 * Gets (as xml) the "password" element 186 */ 187 public org.apache.xmlbeans.XmlString xgetPassword() 188 { 189 synchronized (monitor()) 190 { 191 check_orphaned(); 192 org.apache.xmlbeans.XmlString target = null; 193 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PASSWORD$4, 0); 194 return target; 195 } 196 } 197 198 /** 199 * Sets the "password" element 200 */ 201 public void setPassword(java.lang.String password) 202 { 203 synchronized (monitor()) 204 { 205 check_orphaned(); 206 org.apache.xmlbeans.SimpleValue target = null; 207 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PASSWORD$4, 0); 208 if (target == null) 209 { 210 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PASSWORD$4); 211 } 212 target.setStringValue(password); 213 } 214 } 215 216 /** 217 * Sets (as xml) the "password" element 218 */ 219 public void xsetPassword(org.apache.xmlbeans.XmlString password) 220 { 221 synchronized (monitor()) 222 { 223 check_orphaned(); 224 org.apache.xmlbeans.XmlString target = null; 225 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PASSWORD$4, 0); 226 if (target == null) 227 { 228 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PASSWORD$4); 229 } 230 target.set(password); 231 } 232 } 233 }