001 /* 002 * XML Type: resource-locatorType 003 * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2 004 * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerResourceLocatorType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.naming.impl; 009 /** 010 * An XML resource-locatorType(@http://geronimo.apache.org/xml/ns/naming-1.2). 011 * 012 * This is a complex type. 013 */ 014 public class GerResourceLocatorTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.naming.GerResourceLocatorType 015 { 016 017 public GerResourceLocatorTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName PATTERN$0 = 023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "pattern"); 024 private static final javax.xml.namespace.QName RESOURCELINK$2 = 025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-link"); 026 private static final javax.xml.namespace.QName URL$4 = 027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "url"); 028 029 030 /** 031 * Gets the "pattern" element 032 */ 033 public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType getPattern() 034 { 035 synchronized (monitor()) 036 { 037 check_orphaned(); 038 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null; 039 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$0, 0); 040 if (target == null) 041 { 042 return null; 043 } 044 return target; 045 } 046 } 047 048 /** 049 * True if has "pattern" element 050 */ 051 public boolean isSetPattern() 052 { 053 synchronized (monitor()) 054 { 055 check_orphaned(); 056 return get_store().count_elements(PATTERN$0) != 0; 057 } 058 } 059 060 /** 061 * Sets the "pattern" element 062 */ 063 public void setPattern(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType pattern) 064 { 065 synchronized (monitor()) 066 { 067 check_orphaned(); 068 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null; 069 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$0, 0); 070 if (target == null) 071 { 072 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$0); 073 } 074 target.set(pattern); 075 } 076 } 077 078 /** 079 * Appends and returns a new empty "pattern" element 080 */ 081 public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType addNewPattern() 082 { 083 synchronized (monitor()) 084 { 085 check_orphaned(); 086 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null; 087 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$0); 088 return target; 089 } 090 } 091 092 /** 093 * Unsets the "pattern" element 094 */ 095 public void unsetPattern() 096 { 097 synchronized (monitor()) 098 { 099 check_orphaned(); 100 get_store().remove_element(PATTERN$0, 0); 101 } 102 } 103 104 /** 105 * Gets the "resource-link" element 106 */ 107 public java.lang.String getResourceLink() 108 { 109 synchronized (monitor()) 110 { 111 check_orphaned(); 112 org.apache.xmlbeans.SimpleValue target = null; 113 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESOURCELINK$2, 0); 114 if (target == null) 115 { 116 return null; 117 } 118 return target.getStringValue(); 119 } 120 } 121 122 /** 123 * Gets (as xml) the "resource-link" element 124 */ 125 public org.apache.xmlbeans.XmlString xgetResourceLink() 126 { 127 synchronized (monitor()) 128 { 129 check_orphaned(); 130 org.apache.xmlbeans.XmlString target = null; 131 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RESOURCELINK$2, 0); 132 return target; 133 } 134 } 135 136 /** 137 * True if has "resource-link" element 138 */ 139 public boolean isSetResourceLink() 140 { 141 synchronized (monitor()) 142 { 143 check_orphaned(); 144 return get_store().count_elements(RESOURCELINK$2) != 0; 145 } 146 } 147 148 /** 149 * Sets the "resource-link" element 150 */ 151 public void setResourceLink(java.lang.String resourceLink) 152 { 153 synchronized (monitor()) 154 { 155 check_orphaned(); 156 org.apache.xmlbeans.SimpleValue target = null; 157 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESOURCELINK$2, 0); 158 if (target == null) 159 { 160 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RESOURCELINK$2); 161 } 162 target.setStringValue(resourceLink); 163 } 164 } 165 166 /** 167 * Sets (as xml) the "resource-link" element 168 */ 169 public void xsetResourceLink(org.apache.xmlbeans.XmlString resourceLink) 170 { 171 synchronized (monitor()) 172 { 173 check_orphaned(); 174 org.apache.xmlbeans.XmlString target = null; 175 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RESOURCELINK$2, 0); 176 if (target == null) 177 { 178 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RESOURCELINK$2); 179 } 180 target.set(resourceLink); 181 } 182 } 183 184 /** 185 * Unsets the "resource-link" element 186 */ 187 public void unsetResourceLink() 188 { 189 synchronized (monitor()) 190 { 191 check_orphaned(); 192 get_store().remove_element(RESOURCELINK$2, 0); 193 } 194 } 195 196 /** 197 * Gets the "url" element 198 */ 199 public java.lang.String getUrl() 200 { 201 synchronized (monitor()) 202 { 203 check_orphaned(); 204 org.apache.xmlbeans.SimpleValue target = null; 205 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URL$4, 0); 206 if (target == null) 207 { 208 return null; 209 } 210 return target.getStringValue(); 211 } 212 } 213 214 /** 215 * Gets (as xml) the "url" element 216 */ 217 public org.apache.xmlbeans.XmlString xgetUrl() 218 { 219 synchronized (monitor()) 220 { 221 check_orphaned(); 222 org.apache.xmlbeans.XmlString target = null; 223 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URL$4, 0); 224 return target; 225 } 226 } 227 228 /** 229 * True if has "url" element 230 */ 231 public boolean isSetUrl() 232 { 233 synchronized (monitor()) 234 { 235 check_orphaned(); 236 return get_store().count_elements(URL$4) != 0; 237 } 238 } 239 240 /** 241 * Sets the "url" element 242 */ 243 public void setUrl(java.lang.String url) 244 { 245 synchronized (monitor()) 246 { 247 check_orphaned(); 248 org.apache.xmlbeans.SimpleValue target = null; 249 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URL$4, 0); 250 if (target == null) 251 { 252 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(URL$4); 253 } 254 target.setStringValue(url); 255 } 256 } 257 258 /** 259 * Sets (as xml) the "url" element 260 */ 261 public void xsetUrl(org.apache.xmlbeans.XmlString url) 262 { 263 synchronized (monitor()) 264 { 265 check_orphaned(); 266 org.apache.xmlbeans.XmlString target = null; 267 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URL$4, 0); 268 if (target == null) 269 { 270 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(URL$4); 271 } 272 target.set(url); 273 } 274 } 275 276 /** 277 * Unsets the "url" element 278 */ 279 public void unsetUrl() 280 { 281 synchronized (monitor()) 282 { 283 check_orphaned(); 284 get_store().remove_element(URL$4, 0); 285 } 286 } 287 }