001 /* 002 * XML Type: propertyType 003 * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2 004 * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerPropertyType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.naming.impl; 009 /** 010 * An XML propertyType(@http://geronimo.apache.org/xml/ns/naming-1.2). 011 * 012 * This is a complex type. 013 */ 014 public class GerPropertyTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.naming.GerPropertyType 015 { 016 017 public GerPropertyTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName KEY$0 = 023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "key"); 024 private static final javax.xml.namespace.QName VALUE$2 = 025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "value"); 026 027 028 /** 029 * Gets the "key" element 030 */ 031 public java.lang.String getKey() 032 { 033 synchronized (monitor()) 034 { 035 check_orphaned(); 036 org.apache.xmlbeans.SimpleValue target = null; 037 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEY$0, 0); 038 if (target == null) 039 { 040 return null; 041 } 042 return target.getStringValue(); 043 } 044 } 045 046 /** 047 * Gets (as xml) the "key" element 048 */ 049 public org.apache.xmlbeans.XmlString xgetKey() 050 { 051 synchronized (monitor()) 052 { 053 check_orphaned(); 054 org.apache.xmlbeans.XmlString target = null; 055 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEY$0, 0); 056 return target; 057 } 058 } 059 060 /** 061 * Sets the "key" element 062 */ 063 public void setKey(java.lang.String key) 064 { 065 synchronized (monitor()) 066 { 067 check_orphaned(); 068 org.apache.xmlbeans.SimpleValue target = null; 069 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEY$0, 0); 070 if (target == null) 071 { 072 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(KEY$0); 073 } 074 target.setStringValue(key); 075 } 076 } 077 078 /** 079 * Sets (as xml) the "key" element 080 */ 081 public void xsetKey(org.apache.xmlbeans.XmlString key) 082 { 083 synchronized (monitor()) 084 { 085 check_orphaned(); 086 org.apache.xmlbeans.XmlString target = null; 087 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEY$0, 0); 088 if (target == null) 089 { 090 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(KEY$0); 091 } 092 target.set(key); 093 } 094 } 095 096 /** 097 * Gets the "value" element 098 */ 099 public java.lang.String getValue() 100 { 101 synchronized (monitor()) 102 { 103 check_orphaned(); 104 org.apache.xmlbeans.SimpleValue target = null; 105 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0); 106 if (target == null) 107 { 108 return null; 109 } 110 return target.getStringValue(); 111 } 112 } 113 114 /** 115 * Gets (as xml) the "value" element 116 */ 117 public org.apache.xmlbeans.XmlString xgetValue() 118 { 119 synchronized (monitor()) 120 { 121 check_orphaned(); 122 org.apache.xmlbeans.XmlString target = null; 123 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$2, 0); 124 return target; 125 } 126 } 127 128 /** 129 * Sets the "value" element 130 */ 131 public void setValue(java.lang.String value) 132 { 133 synchronized (monitor()) 134 { 135 check_orphaned(); 136 org.apache.xmlbeans.SimpleValue target = null; 137 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0); 138 if (target == null) 139 { 140 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$2); 141 } 142 target.setStringValue(value); 143 } 144 } 145 146 /** 147 * Sets (as xml) the "value" element 148 */ 149 public void xsetValue(org.apache.xmlbeans.XmlString value) 150 { 151 synchronized (monitor()) 152 { 153 check_orphaned(); 154 org.apache.xmlbeans.XmlString target = null; 155 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$2, 0); 156 if (target == null) 157 { 158 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALUE$2); 159 } 160 target.set(value); 161 } 162 } 163 }