Java Doc for XWorkList.java in  » J2EE » webwork-2.2.6 » com » opensymphony » xwork » util » 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 » webwork 2.2.6 » com.opensymphony.xwork.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.ArrayList
   com.opensymphony.xwork.util.XWorkList

XWorkList
public class XWorkList extends ArrayList (Code)
A simple list that guarantees that inserting and retrieving objects will always work regardless of the current size of the list. Upon insertion, type conversion is also performed if necessary. Empty beans will be created to fill the gap between the current list size and the requested index using ObjectFactory's ObjectFactory.buildBean(Classjava.util.Map) buildBean method.
author:
   Patrick Lightbody



Constructor Summary
public  XWorkList(Class clazz)
    
public  XWorkList(Class clazz, Collection c)
    
public  XWorkList(Class clazz, int initialCapacity)
    

Method Summary
public  voidadd(int index, Object element)
     Inserts the specified element at the specified position in this list.
public  booleanadd(Object element)
     Appends the specified element to the end of this list.

This method performs any necessary type conversion.
Parameters:
  element - element to be appended to this list.

public  booleanaddAll(Collection c)
     Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator.
public  booleanaddAll(int index, Collection c)
     Inserts all of the elements in the specified Collection into this list, starting at the specified position.
public  booleancontains(Object element)
    
public synchronized  Objectget(int index)
     Returns the element at the specified position in this list.

An object is guaranteed to be returned since it will create empty beans to fill the gap between the current list size and the requested index.
Parameters:
  index - index of element to return.

public  Objectset(int index, Object element)
     Replaces the element at the specified position in this list with the specified element.

This method is guaranteed to work since it will create empty beans to fill the gap between the current list size and the requested index to enable the element to be set.



Constructor Detail
XWorkList
public XWorkList(Class clazz)(Code)



XWorkList
public XWorkList(Class clazz, Collection c)(Code)



XWorkList
public XWorkList(Class clazz, int initialCapacity)(Code)




Method Detail
add
public void add(int index, Object element)(Code)
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

This method is guaranteed to work since it will create empty beans to fill the gap between the current list size and the requested index to enable the element to be set. This method also performs any necessary type conversion.
Parameters:
  index - index at which the specified element is to be inserted.
Parameters:
  element - element to be inserted.




add
public boolean add(Object element)(Code)
Appends the specified element to the end of this list.

This method performs any necessary type conversion.
Parameters:
  element - element to be appended to this list. true (as per the general contract of Collection.add).




addAll
public boolean addAll(Collection c)(Code)
Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. The behavior of this operation is undefined if the specified Collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified Collection is this list, and this list is nonempty.)

This method performs any necessary type conversion.
Parameters:
  c - the elements to be inserted into this list. true if this list changed as a result of the call.
throws:
  NullPointerException - if the specified collection is null.




addAll
public boolean addAll(int index, Collection c)(Code)
Inserts all of the elements in the specified Collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified Collection's iterator.

This method is guaranteed to work since it will create empty beans to fill the gap between the current list size and the requested index to enable the element to be set. This method also performs any necessary type conversion.
Parameters:
  index - index at which to insert first element from the specified collection.
Parameters:
  c - elements to be inserted into this list. true if this list changed as a result of the call.




contains
public boolean contains(Object element)(Code)



get
public synchronized Object get(int index)(Code)
Returns the element at the specified position in this list.

An object is guaranteed to be returned since it will create empty beans to fill the gap between the current list size and the requested index.
Parameters:
  index - index of element to return. the element at the specified position in this list.




set
public Object set(int index, Object element)(Code)
Replaces the element at the specified position in this list with the specified element.

This method is guaranteed to work since it will create empty beans to fill the gap between the current list size and the requested index to enable the element to be set. This method also performs any necessary type conversion.
Parameters:
  index - index of element to replace.
Parameters:
  element - element to be stored at the specified position. the element previously at the specified position.




Methods inherited from java.util.ArrayList
public boolean add(E e)(Code)(Java Doc)
public void add(int index, E element)(Code)(Java Doc)
public boolean addAll(Collection<? extends E> c)(Code)(Java Doc)
public boolean addAll(int index, Collection<? extends E> c)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public boolean contains(Object o)(Code)(Java Doc)
public void ensureCapacity(int minCapacity)(Code)(Java Doc)
public E get(int index)(Code)(Java Doc)
public int indexOf(Object o)(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public Iterator<E> iterator()(Code)(Java Doc)
public int lastIndexOf(Object o)(Code)(Java Doc)
public ListIterator<E> listIterator(int index)(Code)(Java Doc)
public ListIterator<E> listIterator()(Code)(Java Doc)
public E remove(int index)(Code)(Java Doc)
public boolean remove(Object o)(Code)(Java Doc)
public boolean removeAll(Collection c)(Code)(Java Doc)
protected void removeRange(int fromIndex, int toIndex)(Code)(Java Doc)
public boolean retainAll(Collection c)(Code)(Java Doc)
public E set(int index, E element)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public List<E> subList(int fromIndex, int toIndex)(Code)(Java Doc)
public Object[] toArray()(Code)(Java Doc)
public T[] toArray(T[] a)(Code)(Java Doc)
public void trimToSize()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.