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