Java Doc for AttributeList.java in  » Workflow-Engines » OpenWFE » org » jdom » 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 » Workflow Engines » OpenWFE » org.jdom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.AbstractList
   org.jdom.AttributeList

AttributeList
class AttributeList extends AbstractList implements List,java.io.Serializable(Code)
AttributeList represents legal JDOM Attribute content. This class is NOT PUBLIC; users should see it as a simple List implementation.
author:
   Alex Rosen
author:
   Philippe Riand
author:
   Bradley S. Huffman
version:
   $Revision: 1.1 $, $Date: 2005/04/27 09:32:39 $
See Also:   CDATA
See Also:   Comment
See Also:   Element
See Also:   EntityRef
See Also:   ProcessingInstruction
See Also:   Text



Constructor Summary
 AttributeList(Element parent)
    

Method Summary
public  booleanadd(Object obj)
     Add a attribute to the end of the list or replace a existing attribute with the same name and Namespace.
Parameters:
  obj - The object to insert into the list.
public  voidadd(int index, Object obj)
     Inserts the specified attribute at the specified position in this list.
 voidadd(int index, Attribute attribute)
     Check and add the Attribute to this list at the given index.
public  booleanaddAll(Collection collection)
     Add all the objects in the specified collection.
Parameters:
  collection - The collection containing all the objects to add.
public  booleanaddAll(int index, Collection collection)
     Inserts the specified collecton at the specified position in this list. Shifts the attribute currently at that position (if any) and any subsequent attributes to the right (adds one to their indices).
Parameters:
  index - The offset to start adding the data in the collection
Parameters:
  collection - The collection to insert into the list.
public  voidclear()
     Clear the current list.
 voidclearAndSet(Collection collection)
     Clear the current list and set it to the contents of the Collection.
public  Objectget(int index)
     Return the object at the specified offset.
Parameters:
  index - The offset of the object.
 Objectget(String name, Namespace namespace)
     Return the Attribute with the given name and Namespace.
 intindexOf(String name, Namespace namespace)
     Return index of the Attribute with the given name and uri.
public  Objectremove(int index)
     Remove the object at the specified offset.
Parameters:
  index - The offset of the object.
 booleanremove(String name, Namespace namespace)
     Remove the Attribute with the given name and Namespace.
public  Objectset(int index, Object obj)
     Set the object at the specified location to the supplied object.
Parameters:
  index - The location to set the value to.
Parameters:
  obj - The location to set the value to.
 Objectset(int index, Attribute attribute)
     Set the object at the specified location to the supplied object.
public  intsize()
    
public  StringtoString()
    
final  voiduncheckedAddAttribute(Attribute a)
     Package internal method to support building from sources that are 100% trusted.


Constructor Detail
AttributeList
AttributeList(Element parent)(Code)
Create a new instance of the AttributeList representing Element content
Parameters:
  parent - element whose attributes are to be held




Method Detail
add
public boolean add(Object obj)(Code)
Add a attribute to the end of the list or replace a existing attribute with the same name and Namespace.
Parameters:
  obj - The object to insert into the list. true (as per the general contract of Collection.add).
throws:
  IndexOutOfBoundsException - if index < 0 || index > size()



add
public void add(int index, Object obj)(Code)
Inserts the specified attribute at the specified position in this list. Shifts the attribute currently at that position (if any) and any subsequent attributes to the right (adds one to their indices).
Parameters:
  index - The location to set the value to.
Parameters:
  obj - The object to insert into the list.throws IndexOutOfBoundsException if index < 0 || index > size()



add
void add(int index, Attribute attribute)(Code)
Check and add the Attribute to this list at the given index. Note: does not check for duplicate attributes.
Parameters:
  index - index where to add Attribute
Parameters:
  attribute - Attribute to add



addAll
public boolean addAll(Collection collection)(Code)
Add all the objects in the specified collection.
Parameters:
  collection - The collection containing all the objects to add. true if the list was modified as a result ofthe add.



addAll
public boolean addAll(int index, Collection collection)(Code)
Inserts the specified collecton at the specified position in this list. Shifts the attribute currently at that position (if any) and any subsequent attributes to the right (adds one to their indices).
Parameters:
  index - The offset to start adding the data in the collection
Parameters:
  collection - The collection to insert into the list. true if the list was modified as a result ofthe add.throws IndexOutOfBoundsException if index < 0 || index > size()



clear
public void clear()(Code)
Clear the current list.



clearAndSet
void clearAndSet(Collection collection)(Code)
Clear the current list and set it to the contents of the Collection. object.
Parameters:
  collection - The collection to use.



get
public Object get(int index)(Code)
Return the object at the specified offset.
Parameters:
  index - The offset of the object. The Object which was returned.



get
Object get(String name, Namespace namespace)(Code)
Return the Attribute with the given name and Namespace.
Parameters:
  name - name of attribute to return
Parameters:
  namespace - Namespace to match the Attribute, or null if one doesn't exist.



indexOf
int indexOf(String name, Namespace namespace)(Code)
Return index of the Attribute with the given name and uri.



remove
public Object remove(int index)(Code)
Remove the object at the specified offset.
Parameters:
  index - The offset of the object. The Object which was removed.



remove
boolean remove(String name, Namespace namespace)(Code)
Remove the Attribute with the given name and Namespace.
Parameters:
  namespace - Namespace to match the true if attribute was removed,false otherwise



set
public Object set(int index, Object obj)(Code)
Set the object at the specified location to the supplied object.
Parameters:
  index - The location to set the value to.
Parameters:
  obj - The location to set the value to. The object which was replaced.throws IndexOutOfBoundsException if index < 0 || index >= size()



set
Object set(int index, Attribute attribute)(Code)
Set the object at the specified location to the supplied object. Note: does not check for duplicate attributes.
Parameters:
  index - The location to set the value to.
Parameters:
  attribute - The attribute to set. The object which was replaced.throws IndexOutOfBoundsException if index < 0 || index >= size()



size
public int size()(Code)
Return the number of items in this list The number of items in this list.



toString
public String toString()(Code)
Return this list as a String



uncheckedAddAttribute
final void uncheckedAddAttribute(Attribute a)(Code)
Package internal method to support building from sources that are 100% trusted.
Parameters:
  a - attribute to add without any checks



Fields inherited from java.util.AbstractList
protected transient int modCount(Code)(Java Doc)

Methods inherited from java.util.AbstractList
public boolean add(E e)(Code)(Java Doc)
public void add(int index, E element)(Code)(Java Doc)
public boolean addAll(int index, Collection<? extends E> c)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
abstract public E get(int index)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public int indexOf(Object o)(Code)(Java Doc)
public Iterator<E> iterator()(Code)(Java Doc)
public int lastIndexOf(Object o)(Code)(Java Doc)
public ListIterator<E> listIterator()(Code)(Java Doc)
public ListIterator<E> listIterator(int index)(Code)(Java Doc)
public E remove(int index)(Code)(Java Doc)
protected void removeRange(int fromIndex, int toIndex)(Code)(Java Doc)
public E set(int index, E element)(Code)(Java Doc)
public List<E> subList(int fromIndex, int toIndex)(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.