001 /* 002 * XML Type: gbean-locatorType 003 * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2 004 * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.naming.impl; 009 /** 010 * An XML gbean-locatorType(@http://geronimo.apache.org/xml/ns/naming-1.2). 011 * 012 * This is a complex type. 013 */ 014 public class GerGbeanLocatorTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType 015 { 016 017 public GerGbeanLocatorTypeImpl(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 GBEANLINK$2 = 025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "gbean-link"); 026 027 028 /** 029 * Gets the "pattern" element 030 */ 031 public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType getPattern() 032 { 033 synchronized (monitor()) 034 { 035 check_orphaned(); 036 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null; 037 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$0, 0); 038 if (target == null) 039 { 040 return null; 041 } 042 return target; 043 } 044 } 045 046 /** 047 * True if has "pattern" element 048 */ 049 public boolean isSetPattern() 050 { 051 synchronized (monitor()) 052 { 053 check_orphaned(); 054 return get_store().count_elements(PATTERN$0) != 0; 055 } 056 } 057 058 /** 059 * Sets the "pattern" element 060 */ 061 public void setPattern(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType pattern) 062 { 063 synchronized (monitor()) 064 { 065 check_orphaned(); 066 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null; 067 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$0, 0); 068 if (target == null) 069 { 070 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$0); 071 } 072 target.set(pattern); 073 } 074 } 075 076 /** 077 * Appends and returns a new empty "pattern" element 078 */ 079 public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType addNewPattern() 080 { 081 synchronized (monitor()) 082 { 083 check_orphaned(); 084 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null; 085 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$0); 086 return target; 087 } 088 } 089 090 /** 091 * Unsets the "pattern" element 092 */ 093 public void unsetPattern() 094 { 095 synchronized (monitor()) 096 { 097 check_orphaned(); 098 get_store().remove_element(PATTERN$0, 0); 099 } 100 } 101 102 /** 103 * Gets the "gbean-link" element 104 */ 105 public java.lang.String getGbeanLink() 106 { 107 synchronized (monitor()) 108 { 109 check_orphaned(); 110 org.apache.xmlbeans.SimpleValue target = null; 111 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GBEANLINK$2, 0); 112 if (target == null) 113 { 114 return null; 115 } 116 return target.getStringValue(); 117 } 118 } 119 120 /** 121 * Gets (as xml) the "gbean-link" element 122 */ 123 public org.apache.xmlbeans.XmlString xgetGbeanLink() 124 { 125 synchronized (monitor()) 126 { 127 check_orphaned(); 128 org.apache.xmlbeans.XmlString target = null; 129 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(GBEANLINK$2, 0); 130 return target; 131 } 132 } 133 134 /** 135 * True if has "gbean-link" element 136 */ 137 public boolean isSetGbeanLink() 138 { 139 synchronized (monitor()) 140 { 141 check_orphaned(); 142 return get_store().count_elements(GBEANLINK$2) != 0; 143 } 144 } 145 146 /** 147 * Sets the "gbean-link" element 148 */ 149 public void setGbeanLink(java.lang.String gbeanLink) 150 { 151 synchronized (monitor()) 152 { 153 check_orphaned(); 154 org.apache.xmlbeans.SimpleValue target = null; 155 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GBEANLINK$2, 0); 156 if (target == null) 157 { 158 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GBEANLINK$2); 159 } 160 target.setStringValue(gbeanLink); 161 } 162 } 163 164 /** 165 * Sets (as xml) the "gbean-link" element 166 */ 167 public void xsetGbeanLink(org.apache.xmlbeans.XmlString gbeanLink) 168 { 169 synchronized (monitor()) 170 { 171 check_orphaned(); 172 org.apache.xmlbeans.XmlString target = null; 173 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(GBEANLINK$2, 0); 174 if (target == null) 175 { 176 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(GBEANLINK$2); 177 } 178 target.set(gbeanLink); 179 } 180 } 181 182 /** 183 * Unsets the "gbean-link" element 184 */ 185 public void unsetGbeanLink() 186 { 187 synchronized (monitor()) 188 { 189 check_orphaned(); 190 get_store().remove_element(GBEANLINK$2, 0); 191 } 192 } 193 }