org.jdom

Class DefaultJDOMFactory

public class DefaultJDOMFactory extends Object implements JDOMFactory

Creates the standard top-level JDOM classes (Element, Document, Comment, etc). A subclass of this factory might construct custom classes.

Version: $Revision: 1.6 $, $Date: 2004/09/01 05:25:38 $

Author: Ken Rune Holland Phil Nelson Bradley S. Huffman

Constructor Summary
DefaultJDOMFactory()
Method Summary
voidaddContent(Parent parent, Content child)
voidaddNamespaceDeclaration(Element parent, Namespace additional)
Attributeattribute(String name, String value, Namespace namespace)
Attributeattribute(String name, String value, int type, Namespace namespace)
Attributeattribute(String name, String value)
Attributeattribute(String name, String value, int type)
CDATAcdata(String text)
Commentcomment(String text)
DocTypedocType(String elementName, String publicID, String systemID)
DocTypedocType(String elementName, String systemID)
DocTypedocType(String elementName)
Documentdocument(Element rootElement, DocType docType)
Documentdocument(Element rootElement, DocType docType, String baseURI)
Documentdocument(Element rootElement)
Elementelement(String name, Namespace namespace)
Elementelement(String name)
Elementelement(String name, String uri)
Elementelement(String name, String prefix, String uri)
EntityRefentityRef(String name)
EntityRefentityRef(String name, String publicID, String systemID)
EntityRefentityRef(String name, String systemID)
ProcessingInstructionprocessingInstruction(String target, Map data)
ProcessingInstructionprocessingInstruction(String target, String data)
voidsetAttribute(Element parent, Attribute a)
Texttext(String text)

Constructor Detail

DefaultJDOMFactory

public DefaultJDOMFactory()

Method Detail

addContent

public void addContent(Parent parent, Content child)

addNamespaceDeclaration

public void addNamespaceDeclaration(Element parent, Namespace additional)

attribute

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

attribute

public Attribute attribute(String name, String value, int type, Namespace namespace)

attribute

public Attribute attribute(String name, String value)

attribute

public Attribute attribute(String name, String value, int type)

cdata

public CDATA cdata(String text)

comment

public Comment comment(String text)

docType

public DocType docType(String elementName, String publicID, String systemID)

docType

public DocType docType(String elementName, String systemID)

docType

public DocType docType(String elementName)

document

public Document document(Element rootElement, DocType docType)

document

public Document document(Element rootElement, DocType docType, String baseURI)

document

public Document document(Element rootElement)

element

public Element element(String name, Namespace namespace)

element

public Element element(String name)

element

public Element element(String name, String uri)

element

public Element element(String name, String prefix, String uri)

entityRef

public EntityRef entityRef(String name)

entityRef

public EntityRef entityRef(String name, String publicID, String systemID)

entityRef

public EntityRef entityRef(String name, String systemID)

processingInstruction

public ProcessingInstruction processingInstruction(String target, Map data)

processingInstruction

public ProcessingInstruction processingInstruction(String target, String data)

setAttribute

public void setAttribute(Element parent, Attribute a)

text

public Text text(String text)
Copyright B) 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.