001 /*
002 * XML Type: entityType
003 * Namespace: http://openejb.apache.org/xml/ns/corba-css-config-2.1
004 * Java type: org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.corba.xbeans.csiv2.css.impl;
009 /**
010 * An XML entityType(@http://openejb.apache.org/xml/ns/corba-css-config-2.1).
011 *
012 * This is a complex type.
013 */
014 public class CSSEntityTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType
015 {
016
017 public CSSEntityTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName HOSTNAME$0 =
023 new javax.xml.namespace.QName("", "hostname");
024 private static final javax.xml.namespace.QName DISTINGUISHEDNAME$2 =
025 new javax.xml.namespace.QName("", "distinguishedName");
026
027
028 /**
029 * Gets the "hostname" attribute
030 */
031 public java.lang.String getHostname()
032 {
033 synchronized (monitor())
034 {
035 check_orphaned();
036 org.apache.xmlbeans.SimpleValue target = null;
037 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HOSTNAME$0);
038 if (target == null)
039 {
040 return null;
041 }
042 return target.getStringValue();
043 }
044 }
045
046 /**
047 * Gets (as xml) the "hostname" attribute
048 */
049 public org.apache.xmlbeans.XmlString xgetHostname()
050 {
051 synchronized (monitor())
052 {
053 check_orphaned();
054 org.apache.xmlbeans.XmlString target = null;
055 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(HOSTNAME$0);
056 return target;
057 }
058 }
059
060 /**
061 * True if has "hostname" attribute
062 */
063 public boolean isSetHostname()
064 {
065 synchronized (monitor())
066 {
067 check_orphaned();
068 return get_store().find_attribute_user(HOSTNAME$0) != null;
069 }
070 }
071
072 /**
073 * Sets the "hostname" attribute
074 */
075 public void setHostname(java.lang.String hostname)
076 {
077 synchronized (monitor())
078 {
079 check_orphaned();
080 org.apache.xmlbeans.SimpleValue target = null;
081 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HOSTNAME$0);
082 if (target == null)
083 {
084 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(HOSTNAME$0);
085 }
086 target.setStringValue(hostname);
087 }
088 }
089
090 /**
091 * Sets (as xml) the "hostname" attribute
092 */
093 public void xsetHostname(org.apache.xmlbeans.XmlString hostname)
094 {
095 synchronized (monitor())
096 {
097 check_orphaned();
098 org.apache.xmlbeans.XmlString target = null;
099 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(HOSTNAME$0);
100 if (target == null)
101 {
102 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(HOSTNAME$0);
103 }
104 target.set(hostname);
105 }
106 }
107
108 /**
109 * Unsets the "hostname" attribute
110 */
111 public void unsetHostname()
112 {
113 synchronized (monitor())
114 {
115 check_orphaned();
116 get_store().remove_attribute(HOSTNAME$0);
117 }
118 }
119
120 /**
121 * Gets the "distinguishedName" attribute
122 */
123 public java.lang.String getDistinguishedName()
124 {
125 synchronized (monitor())
126 {
127 check_orphaned();
128 org.apache.xmlbeans.SimpleValue target = null;
129 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DISTINGUISHEDNAME$2);
130 if (target == null)
131 {
132 return null;
133 }
134 return target.getStringValue();
135 }
136 }
137
138 /**
139 * Gets (as xml) the "distinguishedName" attribute
140 */
141 public org.apache.xmlbeans.XmlString xgetDistinguishedName()
142 {
143 synchronized (monitor())
144 {
145 check_orphaned();
146 org.apache.xmlbeans.XmlString target = null;
147 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DISTINGUISHEDNAME$2);
148 return target;
149 }
150 }
151
152 /**
153 * True if has "distinguishedName" attribute
154 */
155 public boolean isSetDistinguishedName()
156 {
157 synchronized (monitor())
158 {
159 check_orphaned();
160 return get_store().find_attribute_user(DISTINGUISHEDNAME$2) != null;
161 }
162 }
163
164 /**
165 * Sets the "distinguishedName" attribute
166 */
167 public void setDistinguishedName(java.lang.String distinguishedName)
168 {
169 synchronized (monitor())
170 {
171 check_orphaned();
172 org.apache.xmlbeans.SimpleValue target = null;
173 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DISTINGUISHEDNAME$2);
174 if (target == null)
175 {
176 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DISTINGUISHEDNAME$2);
177 }
178 target.setStringValue(distinguishedName);
179 }
180 }
181
182 /**
183 * Sets (as xml) the "distinguishedName" attribute
184 */
185 public void xsetDistinguishedName(org.apache.xmlbeans.XmlString distinguishedName)
186 {
187 synchronized (monitor())
188 {
189 check_orphaned();
190 org.apache.xmlbeans.XmlString target = null;
191 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DISTINGUISHEDNAME$2);
192 if (target == null)
193 {
194 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DISTINGUISHEDNAME$2);
195 }
196 target.set(distinguishedName);
197 }
198 }
199
200 /**
201 * Unsets the "distinguishedName" attribute
202 */
203 public void unsetDistinguishedName()
204 {
205 synchronized (monitor())
206 {
207 check_orphaned();
208 get_store().remove_attribute(DISTINGUISHEDNAME$2);
209 }
210 }
211 }