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

All known Subclasses:   org.jdom.DefaultJDOMFactory,  org.jdom.UncheckedJDOMFactory,
JDOMFactory
public interface JDOMFactory (Code)
An interface to be used by builders when constructing JDOM objects. The DefaultJDOMFactory creates the standard top-level JDOM classes (Element, Document, Comment, etc). Another implementation of this factory could be used to create custom classes.
version:
   $Revision: 1.1 $, $Date: 2005/04/27 09:32:40 $
author:
   Ken Rune Holland
author:
   Phil Nelson
author:
   Bradley S. Huffman




Method Summary
public  voidaddContent(Parent parent, Content content)
    
public  voidaddNamespaceDeclaration(Element element, Namespace additional)
    
public  Attributeattribute(String name, String value, Namespace namespace)
    

This will create a new Attribute with the specified (local) name and value, and in the provided org.jdom.Namespace .

public  Attributeattribute(String name, String value, int type, Namespace namespace)
     This will create a new Attribute with the specified (local) name, value, and type, and in the provided org.jdom.Namespace .
public  Attributeattribute(String name, String value)
     This will create a new Attribute with the specified (local) name and value, and does not place the attribute in a org.jdom.Namespace .
public  Attributeattribute(String name, String value, int type)
     This will create a new Attribute with the specified (local) name, value and type, and does not place the attribute in a org.jdom.Namespace .
public  CDATAcdata(String str)
     This creates the CDATA with the supplied text.
public  Commentcomment(String text)
     This creates the comment with the supplied text.
public  DocTypedocType(String elementName, String publicID, String systemID)
     This will create the DocType with the specified element name and a reference to an external DTD.
public  DocTypedocType(String elementName, String systemID)
     This will create the DocType with the specified element name and reference to an external DTD.
public  DocTypedocType(String elementName)
    
public  Documentdocument(Element rootElement, DocType docType)
     This will create a new Document, with the supplied org.jdom.Element as the root element and the supplied org.jdom.DocType declaration.
public  Documentdocument(Element rootElement, DocType docType, String baseURI)
     This will create a new Document, with the supplied org.jdom.Element as the root element and the supplied org.jdom.DocType declaration.
public  Documentdocument(Element rootElement)
     This will create a new Document, with the supplied org.jdom.Element as the root element, and no org.jdom.DocType declaration.
public  Elementelement(String name, Namespace namespace)
     This will create a new Element with the supplied (local) name, and define the org.jdom.Namespace to be used.
public  Elementelement(String name)
     This will create an Element in no org.jdom.Namespace .
public  Elementelement(String name, String uri)
     This will create a new Element with the supplied (local) name, and specifies the URI of the org.jdom.Namespace the Element should be in, resulting it being unprefixed (in the default namespace).
public  Elementelement(String name, String prefix, String uri)
     This will create a new Element with the supplied (local) name, and specifies the prefix and URI of the org.jdom.Namespace the Element should be in.
public  EntityRefentityRef(String name)
     This will create a new EntityRef with the supplied name.
public  EntityRefentityRef(String name, String publicID, String systemID)
     This will create a new EntityRef with the supplied name, public ID, and system ID.
public  EntityRefentityRef(String name, String systemID)
     This will create a new EntityRef with the supplied name and system ID.
public  ProcessingInstructionprocessingInstruction(String target, Map data)
     This will create a new ProcessingInstruction with the specified target and data.
public  ProcessingInstructionprocessingInstruction(String target, String data)
     This will create a new ProcessingInstruction with the specified target and data.
public  voidsetAttribute(Element element, Attribute a)
    
public  Texttext(String str)
     This creates the Text with the supplied text.



Method Detail
addContent
public void addContent(Parent parent, Content content)(Code)



addNamespaceDeclaration
public void addNamespaceDeclaration(Element element, Namespace additional)(Code)



attribute
public Attribute attribute(String name, String value, Namespace namespace)(Code)

This will create a new Attribute with the specified (local) name and value, and in the provided org.jdom.Namespace .


Parameters:
  name - String name of Attribute.
Parameters:
  value - String value for new attribute.



attribute
public Attribute attribute(String name, String value, int type, Namespace namespace)(Code)
This will create a new Attribute with the specified (local) name, value, and type, and in the provided org.jdom.Namespace .
Parameters:
  name - String name of Attribute.
Parameters:
  value - String value for new attribute.
Parameters:
  type - int type for new attribute.
Parameters:
  namespace - Namespace namespace for new attribute.



attribute
public Attribute attribute(String name, String value)(Code)
This will create a new Attribute with the specified (local) name and value, and does not place the attribute in a org.jdom.Namespace .

Note: This actually explicitly puts the Attribute in the "empty" Namespace ( org.jdom.Namespace.NO_NAMESPACE ).


Parameters:
  name - String name of Attribute.
Parameters:
  value - String value for new attribute.



attribute
public Attribute attribute(String name, String value, int type)(Code)
This will create a new Attribute with the specified (local) name, value and type, and does not place the attribute in a org.jdom.Namespace .

Note: This actually explicitly puts the Attribute in the "empty" Namespace ( org.jdom.Namespace.NO_NAMESPACE ).


Parameters:
  name - String name of Attribute.
Parameters:
  value - String value for new attribute.
Parameters:
  type - int type for new attribute.



cdata
public CDATA cdata(String str)(Code)
This creates the CDATA with the supplied text.
Parameters:
  str - String content of CDATA.



comment
public Comment comment(String text)(Code)
This creates the comment with the supplied text.
Parameters:
  text - String content of comment.



docType
public DocType docType(String elementName, String publicID, String systemID)(Code)
This will create the DocType with the specified element name and a reference to an external DTD.
Parameters:
  elementName - String name ofelement being constrained.
Parameters:
  publicID - String public ID ofreferenced DTD
Parameters:
  systemID - String system ID ofreferenced DTD



docType
public DocType docType(String elementName, String systemID)(Code)
This will create the DocType with the specified element name and reference to an external DTD.
Parameters:
  elementName - String name ofelement being constrained.
Parameters:
  systemID - String system ID ofreferenced DTD



docType
public DocType docType(String elementName)(Code)
This will create the DocType with the specified element name
Parameters:
  elementName - String name ofelement being constrained.



document
public Document document(Element rootElement, DocType docType)(Code)
This will create a new Document, with the supplied org.jdom.Element as the root element and the supplied org.jdom.DocType declaration.
Parameters:
  rootElement - Element for document root.
Parameters:
  docType - DocType declaration.



document
public Document document(Element rootElement, DocType docType, String baseURI)(Code)
This will create a new Document, with the supplied org.jdom.Element as the root element and the supplied org.jdom.DocType declaration.
Parameters:
  rootElement - Element for document root.
Parameters:
  docType - DocType declaration.
Parameters:
  baseURI - the URI from which this doucment was loaded.



document
public Document document(Element rootElement)(Code)
This will create a new Document, with the supplied org.jdom.Element as the root element, and no org.jdom.DocType declaration.
Parameters:
  rootElement - Element for document root



element
public Element element(String name, Namespace namespace)(Code)
This will create a new Element with the supplied (local) name, and define the org.jdom.Namespace to be used.
Parameters:
  name - String name of element.
Parameters:
  namespace - Namespace to put element in.



element
public Element element(String name)(Code)
This will create an Element in no org.jdom.Namespace .
Parameters:
  name - String name of element.



element
public Element element(String name, String uri)(Code)
This will create a new Element with the supplied (local) name, and specifies the URI of the org.jdom.Namespace the Element should be in, resulting it being unprefixed (in the default namespace).
Parameters:
  name - String name of element.
Parameters:
  uri - String URI for Namespace elementshould be in.



element
public Element element(String name, String prefix, String uri)(Code)
This will create a new Element with the supplied (local) name, and specifies the prefix and URI of the org.jdom.Namespace the Element should be in.
Parameters:
  name - String name of element.
Parameters:
  uri - String URI for Namespace elementshould be in.



entityRef
public EntityRef entityRef(String name)(Code)
This will create a new EntityRef with the supplied name.
Parameters:
  name - String name of element.



entityRef
public EntityRef entityRef(String name, String publicID, String systemID)(Code)
This will create a new EntityRef with the supplied name, public ID, and system ID.
Parameters:
  name - String name of element.
Parameters:
  publicID - String public ID of element.
Parameters:
  systemID - String system ID of element.



entityRef
public EntityRef entityRef(String name, String systemID)(Code)
This will create a new EntityRef with the supplied name and system ID.
Parameters:
  name - String name of element.
Parameters:
  systemID - String system ID of element.



processingInstruction
public ProcessingInstruction processingInstruction(String target, Map data)(Code)
This will create a new ProcessingInstruction with the specified target and data.
Parameters:
  target - String target of PI.
Parameters:
  data - Map data for PI, inname/value pairs



processingInstruction
public ProcessingInstruction processingInstruction(String target, String data)(Code)
This will create a new ProcessingInstruction with the specified target and data.
Parameters:
  target - String target of PI.
Parameters:
  data - String data for PI.



setAttribute
public void setAttribute(Element element, Attribute a)(Code)



text
public Text text(String str)(Code)
This creates the Text with the supplied text.
Parameters:
  str - String content of Text.



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