001/* 002 * An XML document type. 003 * Localname: value 004 * Namespace: http://www.springframework.org/schema/beans 005 * Java type: org.springframework.schema.beans.ValueDocument 006 * 007 * Automatically generated - do not modify. 008 */ 009package org.springframework.schema.beans.impl; 010/** 011 * A document containing one value(@http://www.springframework.org/schema/beans) element. 012 * 013 * This is a complex type. 014 */ 015public class ValueDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.ValueDocument 016{ 017 private static final long serialVersionUID = 1L; 018 019 public ValueDocumentImpl(org.apache.xmlbeans.SchemaType sType) 020 { 021 super(sType); 022 } 023 024 private static final javax.xml.namespace.QName VALUE$0 = 025 new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "value"); 026 027 028 /** 029 * Gets the "value" element 030 */ 031 public org.springframework.schema.beans.ValueDocument.Value getValue() 032 { 033 synchronized (monitor()) 034 { 035 check_orphaned(); 036 org.springframework.schema.beans.ValueDocument.Value target = null; 037 target = (org.springframework.schema.beans.ValueDocument.Value)get_store().find_element_user(VALUE$0, 0); 038 if (target == null) 039 { 040 return null; 041 } 042 return target; 043 } 044 } 045 046 /** 047 * Sets the "value" element 048 */ 049 public void setValue(org.springframework.schema.beans.ValueDocument.Value value) 050 { 051 synchronized (monitor()) 052 { 053 check_orphaned(); 054 org.springframework.schema.beans.ValueDocument.Value target = null; 055 target = (org.springframework.schema.beans.ValueDocument.Value)get_store().find_element_user(VALUE$0, 0); 056 if (target == null) 057 { 058 target = (org.springframework.schema.beans.ValueDocument.Value)get_store().add_element_user(VALUE$0); 059 } 060 target.set(value); 061 } 062 } 063 064 /** 065 * Appends and returns a new empty "value" element 066 */ 067 public org.springframework.schema.beans.ValueDocument.Value addNewValue() 068 { 069 synchronized (monitor()) 070 { 071 check_orphaned(); 072 org.springframework.schema.beans.ValueDocument.Value target = null; 073 target = (org.springframework.schema.beans.ValueDocument.Value)get_store().add_element_user(VALUE$0); 074 return target; 075 } 076 } 077 /** 078 * An XML value(@http://www.springframework.org/schema/beans). 079 * 080 * This is a complex type. 081 */ 082 public static class ValueImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.ValueDocument.Value 083 { 084 private static final long serialVersionUID = 1L; 085 086 public ValueImpl(org.apache.xmlbeans.SchemaType sType) 087 { 088 super(sType); 089 } 090 091 private static final javax.xml.namespace.QName TYPE$0 = 092 new javax.xml.namespace.QName("", "type"); 093 094 095 /** 096 * Gets the "type" attribute 097 */ 098 public java.lang.String getType() 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(TYPE$0); 105 if (target == null) 106 { 107 return null; 108 } 109 return target.getStringValue(); 110 } 111 } 112 113 /** 114 * Gets (as xml) the "type" attribute 115 */ 116 public org.apache.xmlbeans.XmlString xgetType() 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(TYPE$0); 123 return target; 124 } 125 } 126 127 /** 128 * True if has "type" attribute 129 */ 130 public boolean isSetType() 131 { 132 synchronized (monitor()) 133 { 134 check_orphaned(); 135 return get_store().find_attribute_user(TYPE$0) != null; 136 } 137 } 138 139 /** 140 * Sets the "type" attribute 141 */ 142 public void setType(java.lang.String type) 143 { 144 synchronized (monitor()) 145 { 146 check_orphaned(); 147 org.apache.xmlbeans.SimpleValue target = null; 148 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$0); 149 if (target == null) 150 { 151 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$0); 152 } 153 target.setStringValue(type); 154 } 155 } 156 157 /** 158 * Sets (as xml) the "type" attribute 159 */ 160 public void xsetType(org.apache.xmlbeans.XmlString type) 161 { 162 synchronized (monitor()) 163 { 164 check_orphaned(); 165 org.apache.xmlbeans.XmlString target = null; 166 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPE$0); 167 if (target == null) 168 { 169 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TYPE$0); 170 } 171 target.set(type); 172 } 173 } 174 175 /** 176 * Unsets the "type" attribute 177 */ 178 public void unsetType() 179 { 180 synchronized (monitor()) 181 { 182 check_orphaned(); 183 get_store().remove_attribute(TYPE$0); 184 } 185 } 186 } 187}