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