Java Doc for Parent.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) 


org.jdom.Parent

All known Subclasses:   org.jdom.Document,  org.jdom.Element,
Parent
public interface Parent extends Cloneable,Serializable(Code)
Superclass for JDOM objects which are allowed to contain Content content.
See Also:   org.jdom.Content
See Also:   org.jdom.Document
See Also:   org.jdom.Element
author:
   Bradley S. Huffman
author:
   Jason Hunter
version:
   $Revision: 1.1 $, $Date: 2005/04/27 09:32:37 $




Method Summary
 Objectclone()
     Obtain a deep, unattached copy of this parent and it's children.
 ListcloneContent()
     Returns a list containing detached clones of this parent's content list.
 ContentgetContent(int index)
     Returns the child at the given index.
 ListgetContent()
     Returns the full content of this parent as a java.util.List which contains objects of type Content .
 ListgetContent(Filter filter)
     Returns as a java.util.List the content of this parent that matches the supplied filter.
 intgetContentSize()
     Returns the number of children in this parent's content list.
 IteratorgetDescendants()
     Returns an java.util.Iterator that walks over all descendants in document order.
 IteratorgetDescendants(Filter filter)
     Returns an java.util.Iterator that walks over all descendants in document order applying the Filter to return only elements that match the filter rule.
 DocumentgetDocument()
     Return this parent's owning document or null if the branch containing this parent is currently not attached to a document.
 ParentgetParent()
     Return this parent's parent, or null if this parent is currently not attached to another parent.
 intindexOf(Content child)
     Returns the index of the supplied child in the content list, or -1 if not a child of this parent.
 ListremoveContent()
     Removes all content from this parent and returns the detached children.
 ListremoveContent(Filter filter)
     Removes from this parent all child content matching the given filter and returns a list of the detached children.
 booleanremoveContent(Content child)
     Removes a single child node from the content list.
 ContentremoveContent(int index)
     Removes and returns the child at the given index, or returns null if there's no such child.



Method Detail
clone
Object clone()(Code)
Obtain a deep, unattached copy of this parent and it's children. a deep copy of this parent and it's children.



cloneContent
List cloneContent()(Code)
Returns a list containing detached clones of this parent's content list. list of cloned child content



getContent
Content getContent(int index)(Code)
Returns the child at the given index.
Parameters:
  index - location of desired child child at the given index
throws:
  IndexOutOfBoundsException - if index is negative or beyondthe current number of children
throws:
  IllegalStateException - if parent is a Documentand the root element is not set



getContent
List getContent()(Code)
Returns the full content of this parent as a java.util.List which contains objects of type Content . The returned list is "live" and in document order. Any modifications to it affect the element's actual contents. Modifications are checked for conformance to XML 1.0 rules.

Sequential traversal through the List is best done with an Iterator since the underlying implement of java.util.List.size may require walking the entire list and indexed lookups may require starting at the beginning each time. a list of the content of the parent
throws:
  IllegalStateException - if parent is a Documentand the root element is not set




getContent
List getContent(Filter filter)(Code)
Returns as a java.util.List the content of this parent that matches the supplied filter. The returned list is "live" and in document order. Any modifications to it affect the element's actual contents. Modifications are checked for conformance to XML 1.0 rules.

Sequential traversal through the List is best done with an Iterator since the underlying implement of java.util.List.size may require walking the entire list and indexed lookups may require starting at the beginning each time.
Parameters:
  filter - filter to apply a list of the content of the parent matching the filter
throws:
  IllegalStateException - if parent is a Documentand the root element is not set




getContentSize
int getContentSize()(Code)
Returns the number of children in this parent's content list. Children may be any Content type. number of children



getDescendants
Iterator getDescendants()(Code)
Returns an java.util.Iterator that walks over all descendants in document order. an iterator to walk descendants



getDescendants
Iterator getDescendants(Filter filter)(Code)
Returns an java.util.Iterator that walks over all descendants in document order applying the Filter to return only elements that match the filter rule. With filters you can match only Elements, only Comments, Elements or Comments, only Elements with a given name and/or prefix, and so on.
Parameters:
  filter - filter to select which descendants to see an iterator to walk descendants that match a filter



getDocument
Document getDocument()(Code)
Return this parent's owning document or null if the branch containing this parent is currently not attached to a document. this child's owning document or null if none



getParent
Parent getParent()(Code)
Return this parent's parent, or null if this parent is currently not attached to another parent. This is the same method as in Content but also added to Parent to allow more easy up-the-tree walking. this parent's parent or null if none



indexOf
int indexOf(Content child)(Code)
Returns the index of the supplied child in the content list, or -1 if not a child of this parent.
Parameters:
  child - child to search for index of child, or -1 if not found



removeContent
List removeContent()(Code)
Removes all content from this parent and returns the detached children. list of the old content detached from this parent



removeContent
List removeContent(Filter filter)(Code)
Removes from this parent all child content matching the given filter and returns a list of the detached children.
Parameters:
  filter - filter to apply list of the detached children matching the filter



removeContent
boolean removeContent(Content child)(Code)
Removes a single child node from the content list.
Parameters:
  child - child to remove whether the removal occurred



removeContent
Content removeContent(int index)(Code)
Removes and returns the child at the given index, or returns null if there's no such child.
Parameters:
  index - index of child to remove detached child at given index or null if no
throws:
  IndexOutOfBoundsException - if index is negative or beyondthe current number of children



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