org.jdom

Class UncheckedJDOMFactory

public class UncheckedJDOMFactory extends Object implements JDOMFactory

Special factory for building documents without any content or structure checking. This should only be used when you are 100% positive that the input is absolutely correct. This factory can speed builds, but any problems in the input will be uncaught until later when they could cause infinite loops, malformed XML, or worse. Use with extreme caution.
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 str)
Commentcomment(String str)
DocTypedocType(String elementName, String publicID, String systemID)
DocTypedocType(String elementName, String systemID)
DocTypedocType(String elementName)
Documentdocument(Element rootElement, DocType docType, String baseURI)
Documentdocument(Element rootElement, DocType docType)
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 systemID)
EntityRefentityRef(String name, String publicID, String systemID)
ProcessingInstructionprocessingInstruction(String target, Map data)
ProcessingInstructionprocessingInstruction(String target, String data)
voidsetAttribute(Element parent, Attribute a)
Texttext(String str)

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 str)

comment

public Comment comment(String str)

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, String baseURI)

document

public Document document(Element rootElement, DocType docType)

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 systemID)

entityRef

public EntityRef entityRef(String name, String publicID, 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 str)
Copyright B) 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.