Source Code Cross Referenced for Roles.java in  » Report » jmagallanes-1.0 » com » calipso » reportgenerator » reportdefinitions » 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 » Report » jmagallanes 1.0 » com.calipso.reportgenerator.reportdefinitions 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * This class was automatically generated with 
003:         * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
004:         * Schema.
005:         * $Id$
006:         */
007:
008:        package com.calipso.reportgenerator.reportdefinitions;
009:
010:        //---------------------------------/
011:        //- Imported classes and packages -/
012:        //---------------------------------/
013:
014:        import java.io.IOException;
015:        import java.io.Reader;
016:        import java.io.Serializable;
017:        import java.io.Writer;
018:        import java.util.Enumeration;
019:        import java.util.Vector;
020:        import org.exolab.castor.xml.MarshalException;
021:        import org.exolab.castor.xml.Marshaller;
022:        import org.exolab.castor.xml.Unmarshaller;
023:        import org.exolab.castor.xml.ValidationException;
024:        import org.xml.sax.ContentHandler;
025:
026:        /**
027:         * Class Roles.
028:         * 
029:         * @version $Revision$ $Date$
030:         */
031:        public class Roles implements  java.io.Serializable {
032:
033:            //--------------------------/
034:            //- Class/Member Variables -/
035:            //--------------------------/
036:
037:            /**
038:             * Field _rolList
039:             */
040:            private java.util.Vector _rolList;
041:
042:            //----------------/
043:            //- Constructors -/
044:            //----------------/
045:
046:            public Roles() {
047:                super ();
048:                _rolList = new Vector();
049:            } //-- com.calipso.reportgenerator.reportdefinitions.Roles()
050:
051:            //-----------/
052:            //- Methods -/
053:            //-----------/
054:
055:            /**
056:             * Method addRol
057:             * 
058:             * @param vRol
059:             */
060:            public void addRol(
061:                    com.calipso.reportgenerator.reportdefinitions.Rol vRol)
062:                    throws java.lang.IndexOutOfBoundsException {
063:                _rolList.addElement(vRol);
064:            } //-- void addRol(com.calipso.reportgenerator.reportdefinitions.Rol) 
065:
066:            /**
067:             * Method addRol
068:             * 
069:             * @param index
070:             * @param vRol
071:             */
072:            public void addRol(int index,
073:                    com.calipso.reportgenerator.reportdefinitions.Rol vRol)
074:                    throws java.lang.IndexOutOfBoundsException {
075:                _rolList.insertElementAt(vRol, index);
076:            } //-- void addRol(int, com.calipso.reportgenerator.reportdefinitions.Rol) 
077:
078:            /**
079:             * Method enumerateRol
080:             */
081:            public java.util.Enumeration enumerateRol() {
082:                return _rolList.elements();
083:            } //-- java.util.Enumeration enumerateRol() 
084:
085:            /**
086:             * Method getRol
087:             * 
088:             * @param index
089:             */
090:            public com.calipso.reportgenerator.reportdefinitions.Rol getRol(
091:                    int index) throws java.lang.IndexOutOfBoundsException {
092:                //-- check bounds for index
093:                if ((index < 0) || (index > _rolList.size())) {
094:                    throw new IndexOutOfBoundsException();
095:                }
096:
097:                return (com.calipso.reportgenerator.reportdefinitions.Rol) _rolList
098:                        .elementAt(index);
099:            } //-- com.calipso.reportgenerator.reportdefinitions.Rol getRol(int) 
100:
101:            /**
102:             * Method getRol
103:             */
104:            public com.calipso.reportgenerator.reportdefinitions.Rol[] getRol() {
105:                int size = _rolList.size();
106:                com.calipso.reportgenerator.reportdefinitions.Rol[] mArray = new com.calipso.reportgenerator.reportdefinitions.Rol[size];
107:                for (int index = 0; index < size; index++) {
108:                    mArray[index] = (com.calipso.reportgenerator.reportdefinitions.Rol) _rolList
109:                            .elementAt(index);
110:                }
111:                return mArray;
112:            } //-- com.calipso.reportgenerator.reportdefinitions.Rol[] getRol() 
113:
114:            /**
115:             * Method getRolCount
116:             */
117:            public int getRolCount() {
118:                return _rolList.size();
119:            } //-- int getRolCount() 
120:
121:            /**
122:             * Method isValid
123:             */
124:            public boolean isValid() {
125:                try {
126:                    validate();
127:                } catch (org.exolab.castor.xml.ValidationException vex) {
128:                    return false;
129:                }
130:                return true;
131:            } //-- boolean isValid() 
132:
133:            /**
134:             * Method marshal
135:             * 
136:             * @param out
137:             */
138:            public void marshal(java.io.Writer out)
139:                    throws org.exolab.castor.xml.MarshalException,
140:                    org.exolab.castor.xml.ValidationException {
141:
142:                Marshaller.marshal(this , out);
143:            } //-- void marshal(java.io.Writer) 
144:
145:            /**
146:             * Method marshal
147:             * 
148:             * @param handler
149:             */
150:            public void marshal(org.xml.sax.ContentHandler handler)
151:                    throws java.io.IOException,
152:                    org.exolab.castor.xml.MarshalException,
153:                    org.exolab.castor.xml.ValidationException {
154:
155:                Marshaller.marshal(this , handler);
156:            } //-- void marshal(org.xml.sax.ContentHandler) 
157:
158:            /**
159:             * Method removeAllRol
160:             */
161:            public void removeAllRol() {
162:                _rolList.removeAllElements();
163:            } //-- void removeAllRol() 
164:
165:            /**
166:             * Method removeRol
167:             * 
168:             * @param index
169:             */
170:            public com.calipso.reportgenerator.reportdefinitions.Rol removeRol(
171:                    int index) {
172:                java.lang.Object obj = _rolList.elementAt(index);
173:                _rolList.removeElementAt(index);
174:                return (com.calipso.reportgenerator.reportdefinitions.Rol) obj;
175:            } //-- com.calipso.reportgenerator.reportdefinitions.Rol removeRol(int) 
176:
177:            /**
178:             * Method setRol
179:             * 
180:             * @param index
181:             * @param vRol
182:             */
183:            public void setRol(int index,
184:                    com.calipso.reportgenerator.reportdefinitions.Rol vRol)
185:                    throws java.lang.IndexOutOfBoundsException {
186:                //-- check bounds for index
187:                if ((index < 0) || (index > _rolList.size())) {
188:                    throw new IndexOutOfBoundsException();
189:                }
190:                _rolList.setElementAt(vRol, index);
191:            } //-- void setRol(int, com.calipso.reportgenerator.reportdefinitions.Rol) 
192:
193:            /**
194:             * Method setRol
195:             * 
196:             * @param rolArray
197:             */
198:            public void setRol(
199:                    com.calipso.reportgenerator.reportdefinitions.Rol[] rolArray) {
200:                //-- copy array
201:                _rolList.removeAllElements();
202:                for (int i = 0; i < rolArray.length; i++) {
203:                    _rolList.addElement(rolArray[i]);
204:                }
205:            } //-- void setRol(com.calipso.reportgenerator.reportdefinitions.Rol) 
206:
207:            /**
208:             * Method unmarshal
209:             * 
210:             * @param reader
211:             */
212:            public static com.calipso.reportgenerator.reportdefinitions.Roles unmarshal(
213:                    java.io.Reader reader)
214:                    throws org.exolab.castor.xml.MarshalException,
215:                    org.exolab.castor.xml.ValidationException {
216:                return (com.calipso.reportgenerator.reportdefinitions.Roles) Unmarshaller
217:                        .unmarshal(
218:                                com.calipso.reportgenerator.reportdefinitions.Roles.class,
219:                                reader);
220:            } //-- com.calipso.reportgenerator.reportdefinitions.Roles unmarshal(java.io.Reader) 
221:
222:            /**
223:             * Method validate
224:             */
225:            public void validate()
226:                    throws org.exolab.castor.xml.ValidationException {
227:                org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
228:                validator.validate(this );
229:            } //-- void validate() 
230:
231:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.