Source Code Cross Referenced for EmployeesDocumentImpl.java in  » J2EE » enhydra » org » apache » xmlbeans » samples » xquery » employees » 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.xquery.employees.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * An XML document type.
003:         * Localname: employees
004:         * Namespace: http://xmlbeans.apache.org/samples/xquery/employees
005:         * Java type: org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument
006:         *
007:         * Automatically generated - do not modify.
008:         */
009:        package org.apache.xmlbeans.samples.xquery.employees.impl;
010:
011:        /**
012:         * A document containing one employees(@http://xmlbeans.apache.org/samples/xquery/employees) element.
013:         *
014:         * This is a complex type.
015:         */
016:        public class EmployeesDocumentImpl extends
017:                org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements 
018:                org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument {
019:
020:            public EmployeesDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
021:                super (sType);
022:            }
023:
024:            private static final javax.xml.namespace.QName EMPLOYEES$0 = new javax.xml.namespace.QName(
025:                    "http://xmlbeans.apache.org/samples/xquery/employees",
026:                    "employees");
027:
028:            /**
029:             * Gets the "employees" element
030:             */
031:            public org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees getEmployees() {
032:                synchronized (monitor()) {
033:                    check_orphaned();
034:                    org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees target = null;
035:                    target = (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees) get_store()
036:                            .find_element_user(EMPLOYEES$0, 0);
037:                    if (target == null) {
038:                        return null;
039:                    }
040:                    return target;
041:                }
042:            }
043:
044:            /**
045:             * Sets the "employees" element
046:             */
047:            public void setEmployees(
048:                    org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees employees) {
049:                synchronized (monitor()) {
050:                    check_orphaned();
051:                    org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees target = null;
052:                    target = (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees) get_store()
053:                            .find_element_user(EMPLOYEES$0, 0);
054:                    if (target == null) {
055:                        target = (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees) get_store()
056:                                .add_element_user(EMPLOYEES$0);
057:                    }
058:                    target.set(employees);
059:                }
060:            }
061:
062:            /**
063:             * Appends and returns a new empty "employees" element
064:             */
065:            public org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees addNewEmployees() {
066:                synchronized (monitor()) {
067:                    check_orphaned();
068:                    org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees target = null;
069:                    target = (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees) get_store()
070:                            .add_element_user(EMPLOYEES$0);
071:                    return target;
072:                }
073:            }
074:
075:            /**
076:             * An XML employees(@http://xmlbeans.apache.org/samples/xquery/employees).
077:             *
078:             * This is a complex type.
079:             */
080:            public static class EmployeesImpl extends
081:                    org.apache.xmlbeans.impl.values.XmlComplexContentImpl
082:                    implements 
083:                    org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees {
084:
085:                public EmployeesImpl(org.apache.xmlbeans.SchemaType sType) {
086:                    super (sType);
087:                }
088:
089:                private static final javax.xml.namespace.QName EMPLOYEE$0 = new javax.xml.namespace.QName(
090:                        "http://xmlbeans.apache.org/samples/xquery/employees",
091:                        "employee");
092:
093:                /**
094:                 * Gets array of all "employee" elements
095:                 */
096:                public org.apache.xmlbeans.samples.xquery.employees.EmployeeType[] getEmployeeArray() {
097:                    synchronized (monitor()) {
098:                        check_orphaned();
099:                        java.util.List targetList = new java.util.ArrayList();
100:                        get_store().find_all_element_users(EMPLOYEE$0,
101:                                targetList);
102:                        org.apache.xmlbeans.samples.xquery.employees.EmployeeType[] result = new org.apache.xmlbeans.samples.xquery.employees.EmployeeType[targetList
103:                                .size()];
104:                        targetList.toArray(result);
105:                        return result;
106:                    }
107:                }
108:
109:                /**
110:                 * Gets ith "employee" element
111:                 */
112:                public org.apache.xmlbeans.samples.xquery.employees.EmployeeType getEmployeeArray(
113:                        int i) {
114:                    synchronized (monitor()) {
115:                        check_orphaned();
116:                        org.apache.xmlbeans.samples.xquery.employees.EmployeeType target = null;
117:                        target = (org.apache.xmlbeans.samples.xquery.employees.EmployeeType) get_store()
118:                                .find_element_user(EMPLOYEE$0, i);
119:                        if (target == null) {
120:                            throw new IndexOutOfBoundsException();
121:                        }
122:                        return target;
123:                    }
124:                }
125:
126:                /**
127:                 * Returns number of "employee" element
128:                 */
129:                public int sizeOfEmployeeArray() {
130:                    synchronized (monitor()) {
131:                        check_orphaned();
132:                        return get_store().count_elements(EMPLOYEE$0);
133:                    }
134:                }
135:
136:                /**
137:                 * Sets array of all "employee" element
138:                 */
139:                public void setEmployeeArray(
140:                        org.apache.xmlbeans.samples.xquery.employees.EmployeeType[] employeeArray) {
141:                    synchronized (monitor()) {
142:                        check_orphaned();
143:                        arraySetterHelper(employeeArray, EMPLOYEE$0);
144:                    }
145:                }
146:
147:                /**
148:                 * Sets ith "employee" element
149:                 */
150:                public void setEmployeeArray(
151:                        int i,
152:                        org.apache.xmlbeans.samples.xquery.employees.EmployeeType employee) {
153:                    synchronized (monitor()) {
154:                        check_orphaned();
155:                        org.apache.xmlbeans.samples.xquery.employees.EmployeeType target = null;
156:                        target = (org.apache.xmlbeans.samples.xquery.employees.EmployeeType) get_store()
157:                                .find_element_user(EMPLOYEE$0, i);
158:                        if (target == null) {
159:                            throw new IndexOutOfBoundsException();
160:                        }
161:                        target.set(employee);
162:                    }
163:                }
164:
165:                /**
166:                 * Inserts and returns a new empty value (as xml) as the ith "employee" element
167:                 */
168:                public org.apache.xmlbeans.samples.xquery.employees.EmployeeType insertNewEmployee(
169:                        int i) {
170:                    synchronized (monitor()) {
171:                        check_orphaned();
172:                        org.apache.xmlbeans.samples.xquery.employees.EmployeeType target = null;
173:                        target = (org.apache.xmlbeans.samples.xquery.employees.EmployeeType) get_store()
174:                                .insert_element_user(EMPLOYEE$0, i);
175:                        return target;
176:                    }
177:                }
178:
179:                /**
180:                 * Appends and returns a new empty value (as xml) as the last "employee" element
181:                 */
182:                public org.apache.xmlbeans.samples.xquery.employees.EmployeeType addNewEmployee() {
183:                    synchronized (monitor()) {
184:                        check_orphaned();
185:                        org.apache.xmlbeans.samples.xquery.employees.EmployeeType target = null;
186:                        target = (org.apache.xmlbeans.samples.xquery.employees.EmployeeType) get_store()
187:                                .add_element_user(EMPLOYEE$0);
188:                        return target;
189:                    }
190:                }
191:
192:                /**
193:                 * Removes the ith "employee" element
194:                 */
195:                public void removeEmployee(int i) {
196:                    synchronized (monitor()) {
197:                        check_orphaned();
198:                        get_store().remove_element(EMPLOYEE$0, i);
199:                    }
200:                }
201:            }
202:        }
w___w_w_._ja_v_a2___s___._c___o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.