public class DefaultIDOMFactory extends java.lang.Object implements IDOMFactory
Constructor and Description |
---|
DefaultIDOMFactory()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Attribute |
newAttribute(Namespace ns,
java.lang.String lname,
java.lang.String value)
Creates an Attribute with namespace.
|
Attribute |
newAttribute(java.lang.String lname,
java.lang.String value)
Creates an Attribute without namespace.
|
CData |
newCData(java.lang.String text)
Creates a CData.
|
Comment |
newComment(java.lang.String text)
Creates a Comment.
|
DocType |
newDocType(java.lang.String elementName,
java.lang.String publicId,
java.lang.String systemId)
Creates a DocType.
|
Document |
newDocument(Element rootElement,
DocType docType)
Creates a Document.
|
Element |
newElement(Namespace ns,
java.lang.String lname)
Creates an Element with a namespace.
|
Element |
newElement(java.lang.String lname)
Creates an Element without namespace.
|
EntityReference |
newEntityRef(java.lang.String name)
Creates an EntityReference.
|
ProcessingInstruction |
newProcessingInstruction(java.lang.String target,
java.lang.String data)
Creates a processing instruction.
|
Text |
newText(java.lang.String text)
Creates a Text.
|
public Attribute newAttribute(java.lang.String lname, java.lang.String value)
IDOMFactory
newAttribute
in interface IDOMFactory
public Attribute newAttribute(Namespace ns, java.lang.String lname, java.lang.String value)
IDOMFactory
newAttribute
in interface IDOMFactory
public CData newCData(java.lang.String text)
IDOMFactory
newCData
in interface IDOMFactory
public Comment newComment(java.lang.String text)
IDOMFactory
newComment
in interface IDOMFactory
public DocType newDocType(java.lang.String elementName, java.lang.String publicId, java.lang.String systemId)
IDOMFactory
newDocType
in interface IDOMFactory
elementName
- the root element's namepublicId
- the public Id; null for emptysystemId
- the system Id; null for emptypublic Document newDocument(Element rootElement, DocType docType)
IDOMFactory
newDocument
in interface IDOMFactory
docType
- the document type; null for not availablepublic Element newElement(Namespace ns, java.lang.String lname)
IDOMFactory
newElement
in interface IDOMFactory
public Element newElement(java.lang.String lname)
IDOMFactory
newElement
in interface IDOMFactory
public ProcessingInstruction newProcessingInstruction(java.lang.String target, java.lang.String data)
IDOMFactory
newProcessingInstruction
in interface IDOMFactory
data
- the raw data; null for emptypublic EntityReference newEntityRef(java.lang.String name)
IDOMFactory
newEntityRef
in interface IDOMFactory
name
- the entity reference's namepublic Text newText(java.lang.String text)
IDOMFactory
newText
in interface IDOMFactory
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.