Source Code Cross Referenced for ListOfStringsImpl.java in  » J2EE » enhydra » org » apache » xmlbeans » samples » any » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » enhydra » org.apache.xmlbeans.samples.any.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * XML Type:  ListOfStrings
003:         * Namespace: http://xmlbeans.apache.org/samples/any
004:         * Java type: org.apache.xmlbeans.samples.any.ListOfStrings
005:         *
006:         * Automatically generated - do not modify.
007:         */
008:        package org.apache.xmlbeans.samples.any.impl;
009:
010:        /**
011:         * An XML ListOfStrings(@http://xmlbeans.apache.org/samples/any).
012:         *
013:         * This is a complex type.
014:         */
015:        public class ListOfStringsImpl extends
016:                org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements 
017:                org.apache.xmlbeans.samples.any.ListOfStrings {
018:
019:            public ListOfStringsImpl(org.apache.xmlbeans.SchemaType sType) {
020:                super (sType);
021:            }
022:
023:            private static final javax.xml.namespace.QName STRINGELEMENT$0 = new javax.xml.namespace.QName(
024:                    "http://xmlbeans.apache.org/samples/any", "stringelement");
025:            private static final javax.xml.namespace.QName ID$2 = new javax.xml.namespace.QName(
026:                    "", "id");
027:
028:            /**
029:             * Gets array of all "stringelement" elements
030:             */
031:            public java.lang.String[] getStringelementArray() {
032:                synchronized (monitor()) {
033:                    check_orphaned();
034:                    java.util.List targetList = new java.util.ArrayList();
035:                    get_store().find_all_element_users(STRINGELEMENT$0,
036:                            targetList);
037:                    java.lang.String[] result = new java.lang.String[targetList
038:                            .size()];
039:                    for (int i = 0, len = targetList.size(); i < len; i++)
040:                        result[i] = ((org.apache.xmlbeans.SimpleValue) targetList
041:                                .get(i)).getStringValue();
042:                    return result;
043:                }
044:            }
045:
046:            /**
047:             * Gets ith "stringelement" element
048:             */
049:            public java.lang.String getStringelementArray(int i) {
050:                synchronized (monitor()) {
051:                    check_orphaned();
052:                    org.apache.xmlbeans.SimpleValue target = null;
053:                    target = (org.apache.xmlbeans.SimpleValue) get_store()
054:                            .find_element_user(STRINGELEMENT$0, i);
055:                    if (target == null) {
056:                        throw new IndexOutOfBoundsException();
057:                    }
058:                    return target.getStringValue();
059:                }
060:            }
061:
062:            /**
063:             * Gets (as xml) array of all "stringelement" elements
064:             */
065:            public org.apache.xmlbeans.XmlString[] xgetStringelementArray() {
066:                synchronized (monitor()) {
067:                    check_orphaned();
068:                    java.util.List targetList = new java.util.ArrayList();
069:                    get_store().find_all_element_users(STRINGELEMENT$0,
070:                            targetList);
071:                    org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList
072:                            .size()];
073:                    targetList.toArray(result);
074:                    return result;
075:                }
076:            }
077:
078:            /**
079:             * Gets (as xml) ith "stringelement" element
080:             */
081:            public org.apache.xmlbeans.XmlString xgetStringelementArray(int i) {
082:                synchronized (monitor()) {
083:                    check_orphaned();
084:                    org.apache.xmlbeans.XmlString target = null;
085:                    target = (org.apache.xmlbeans.XmlString) get_store()
086:                            .find_element_user(STRINGELEMENT$0, i);
087:                    if (target == null) {
088:                        throw new IndexOutOfBoundsException();
089:                    }
090:                    return (org.apache.xmlbeans.XmlString) target;
091:                }
092:            }
093:
094:            /**
095:             * Returns number of "stringelement" element
096:             */
097:            public int sizeOfStringelementArray() {
098:                synchronized (monitor()) {
099:                    check_orphaned();
100:                    return get_store().count_elements(STRINGELEMENT$0);
101:                }
102:            }
103:
104:            /**
105:             * Sets array of all "stringelement" element
106:             */
107:            public void setStringelementArray(
108:                    java.lang.String[] stringelementArray) {
109:                synchronized (monitor()) {
110:                    check_orphaned();
111:                    arraySetterHelper(stringelementArray, STRINGELEMENT$0);
112:                }
113:            }
114:
115:            /**
116:             * Sets ith "stringelement" element
117:             */
118:            public void setStringelementArray(int i,
119:                    java.lang.String stringelement) {
120:                synchronized (monitor()) {
121:                    check_orphaned();
122:                    org.apache.xmlbeans.SimpleValue target = null;
123:                    target = (org.apache.xmlbeans.SimpleValue) get_store()
124:                            .find_element_user(STRINGELEMENT$0, i);
125:                    if (target == null) {
126:                        throw new IndexOutOfBoundsException();
127:                    }
128:                    target.setStringValue(stringelement);
129:                }
130:            }
131:
132:            /**
133:             * Sets (as xml) array of all "stringelement" element
134:             */
135:            public void xsetStringelementArray(
136:                    org.apache.xmlbeans.XmlString[] stringelementArray) {
137:                synchronized (monitor()) {
138:                    check_orphaned();
139:                    arraySetterHelper(stringelementArray, STRINGELEMENT$0);
140:                }
141:            }
142:
143:            /**
144:             * Sets (as xml) ith "stringelement" element
145:             */
146:            public void xsetStringelementArray(int i,
147:                    org.apache.xmlbeans.XmlString stringelement) {
148:                synchronized (monitor()) {
149:                    check_orphaned();
150:                    org.apache.xmlbeans.XmlString target = null;
151:                    target = (org.apache.xmlbeans.XmlString) get_store()
152:                            .find_element_user(STRINGELEMENT$0, i);
153:                    if (target == null) {
154:                        throw new IndexOutOfBoundsException();
155:                    }
156:                    target.set(stringelement);
157:                }
158:            }
159:
160:            /**
161:             * Inserts the value as the ith "stringelement" element
162:             */
163:            public void insertStringelement(int i,
164:                    java.lang.String stringelement) {
165:                synchronized (monitor()) {
166:                    check_orphaned();
167:                    org.apache.xmlbeans.SimpleValue target = (org.apache.xmlbeans.SimpleValue) get_store()
168:                            .insert_element_user(STRINGELEMENT$0, i);
169:                    target.setStringValue(stringelement);
170:                }
171:            }
172:
173:            /**
174:             * Appends the value as the last "stringelement" element
175:             */
176:            public void addStringelement(java.lang.String stringelement) {
177:                synchronized (monitor()) {
178:                    check_orphaned();
179:                    org.apache.xmlbeans.SimpleValue target = null;
180:                    target = (org.apache.xmlbeans.SimpleValue) get_store()
181:                            .add_element_user(STRINGELEMENT$0);
182:                    target.setStringValue(stringelement);
183:                }
184:            }
185:
186:            /**
187:             * Inserts and returns a new empty value (as xml) as the ith "stringelement" element
188:             */
189:            public org.apache.xmlbeans.XmlString insertNewStringelement(int i) {
190:                synchronized (monitor()) {
191:                    check_orphaned();
192:                    org.apache.xmlbeans.XmlString target = null;
193:                    target = (org.apache.xmlbeans.XmlString) get_store()
194:                            .insert_element_user(STRINGELEMENT$0, i);
195:                    return target;
196:                }
197:            }
198:
199:            /**
200:             * Appends and returns a new empty value (as xml) as the last "stringelement" element
201:             */
202:            public org.apache.xmlbeans.XmlString addNewStringelement() {
203:                synchronized (monitor()) {
204:                    check_orphaned();
205:                    org.apache.xmlbeans.XmlString target = null;
206:                    target = (org.apache.xmlbeans.XmlString) get_store()
207:                            .add_element_user(STRINGELEMENT$0);
208:                    return target;
209:                }
210:            }
211:
212:            /**
213:             * Removes the ith "stringelement" element
214:             */
215:            public void removeStringelement(int i) {
216:                synchronized (monitor()) {
217:                    check_orphaned();
218:                    get_store().remove_element(STRINGELEMENT$0, i);
219:                }
220:            }
221:
222:            /**
223:             * Gets the "id" attribute
224:             */
225:            public java.lang.String getId() {
226:                synchronized (monitor()) {
227:                    check_orphaned();
228:                    org.apache.xmlbeans.SimpleValue target = null;
229:                    target = (org.apache.xmlbeans.SimpleValue) get_store()
230:                            .find_attribute_user(ID$2);
231:                    if (target == null) {
232:                        return null;
233:                    }
234:                    return target.getStringValue();
235:                }
236:            }
237:
238:            /**
239:             * Gets (as xml) the "id" attribute
240:             */
241:            public org.apache.xmlbeans.XmlString xgetId() {
242:                synchronized (monitor()) {
243:                    check_orphaned();
244:                    org.apache.xmlbeans.XmlString target = null;
245:                    target = (org.apache.xmlbeans.XmlString) get_store()
246:                            .find_attribute_user(ID$2);
247:                    return target;
248:                }
249:            }
250:
251:            /**
252:             * True if has "id" attribute
253:             */
254:            public boolean isSetId() {
255:                synchronized (monitor()) {
256:                    check_orphaned();
257:                    return get_store().find_attribute_user(ID$2) != null;
258:                }
259:            }
260:
261:            /**
262:             * Sets the "id" attribute
263:             */
264:            public void setId(java.lang.String id) {
265:                synchronized (monitor()) {
266:                    check_orphaned();
267:                    org.apache.xmlbeans.SimpleValue target = null;
268:                    target = (org.apache.xmlbeans.SimpleValue) get_store()
269:                            .find_attribute_user(ID$2);
270:                    if (target == null) {
271:                        target = (org.apache.xmlbeans.SimpleValue) get_store()
272:                                .add_attribute_user(ID$2);
273:                    }
274:                    target.setStringValue(id);
275:                }
276:            }
277:
278:            /**
279:             * Sets (as xml) the "id" attribute
280:             */
281:            public void xsetId(org.apache.xmlbeans.XmlString id) {
282:                synchronized (monitor()) {
283:                    check_orphaned();
284:                    org.apache.xmlbeans.XmlString target = null;
285:                    target = (org.apache.xmlbeans.XmlString) get_store()
286:                            .find_attribute_user(ID$2);
287:                    if (target == null) {
288:                        target = (org.apache.xmlbeans.XmlString) get_store()
289:                                .add_attribute_user(ID$2);
290:                    }
291:                    target.set(id);
292:                }
293:            }
294:
295:            /**
296:             * Unsets the "id" attribute
297:             */
298:            public void unsetId() {
299:                synchronized (monitor()) {
300:                    check_orphaned();
301:                    get_store().remove_attribute(ID$2);
302:                }
303:            }
304:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.