public class DefaultIDOMFactory extends Object implements IDOMFactory
| Constructor and Description |
|---|
DefaultIDOMFactory()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
newAttribute(Namespace ns,
String lname,
String value)
Creates an Attribute with namespace.
|
Attribute |
newAttribute(String lname,
String value)
Creates an Attribute without namespace.
|
CData |
newCData(String text)
Creates a CData.
|
Comment |
newComment(String text)
Creates a Comment.
|
DocType |
newDocType(String elementName,
String publicId,
String systemId)
Creates a DocType.
|
Document |
newDocument(Element rootElement,
DocType docType)
Creates a Document.
|
Element |
newElement(Namespace ns,
String lname)
Creates an Element with a namespace.
|
Element |
newElement(String lname)
Creates an Element without namespace.
|
EntityReference |
newEntityRef(String name)
Creates an EntityReference.
|
ProcessingInstruction |
newProcessingInstruction(String target,
String data)
Creates a processing instruction.
|
Text |
newText(String text)
Creates a Text.
|
public Attribute newAttribute(String lname, String value)
IDOMFactorynewAttribute in interface IDOMFactorypublic Attribute newAttribute(Namespace ns, String lname, String value)
IDOMFactorynewAttribute in interface IDOMFactorypublic CData newCData(String text)
IDOMFactorynewCData in interface IDOMFactorypublic Comment newComment(String text)
IDOMFactorynewComment in interface IDOMFactorypublic DocType newDocType(String elementName, String publicId, String systemId)
IDOMFactorynewDocType in interface IDOMFactoryelementName - the root element's namepublicId - the public Id; null for emptysystemId - the system Id; null for emptypublic Document newDocument(Element rootElement, DocType docType)
IDOMFactorynewDocument in interface IDOMFactorydocType - the document type; null for not availablepublic Element newElement(Namespace ns, String lname)
IDOMFactorynewElement in interface IDOMFactorypublic Element newElement(String lname)
IDOMFactorynewElement in interface IDOMFactorypublic ProcessingInstruction newProcessingInstruction(String target, String data)
IDOMFactorynewProcessingInstruction in interface IDOMFactorydata - the raw data; null for emptypublic EntityReference newEntityRef(String name)
IDOMFactorynewEntityRef in interface IDOMFactoryname - the entity reference's namepublic Text newText(String text)
IDOMFactorynewText in interface IDOMFactoryCopyright © 2018. All rights reserved.