Package org.zkoss.idom.input
Class DefaultIDOMFactory
java.lang.Object
org.zkoss.idom.input.DefaultIDOMFactory
- All Implemented Interfaces:
IDOMFactory
The default iDOM factory.
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewAttribute(String lname, String value) Creates an Attribute without namespace.newAttribute(Namespace ns, String lname, String value) Creates an Attribute with namespace.Creates a CData.newComment(String text) Creates a Comment.newDocType(String elementName, String publicId, String systemId) Creates a DocType.newDocument(Element rootElement, DocType docType) Creates a Document.newElement(String lname) Creates an Element without namespace.newElement(Namespace ns, String lname) Creates an Element with a namespace.newEntityRef(String name) Creates an EntityReference.newProcessingInstruction(String target, String data) Creates a processing instruction.Creates a Text.
-
Constructor Details
-
DefaultIDOMFactory
public DefaultIDOMFactory()Constructor.
-
-
Method Details
-
newAttribute
Description copied from interface:IDOMFactoryCreates an Attribute without namespace.- Specified by:
newAttributein interfaceIDOMFactory
-
newAttribute
Description copied from interface:IDOMFactoryCreates an Attribute with namespace.- Specified by:
newAttributein interfaceIDOMFactory
-
newCData
Description copied from interface:IDOMFactoryCreates a CData.- Specified by:
newCDatain interfaceIDOMFactory
-
newComment
Description copied from interface:IDOMFactoryCreates a Comment.- Specified by:
newCommentin interfaceIDOMFactory
-
newDocType
Description copied from interface:IDOMFactoryCreates a DocType.- Specified by:
newDocTypein interfaceIDOMFactory- Parameters:
elementName- the root element's namepublicId- the public Id; null for emptysystemId- the system Id; null for empty
-
newDocument
Description copied from interface:IDOMFactoryCreates a Document.- Specified by:
newDocumentin interfaceIDOMFactorydocType- the document type; null for not available
-
newElement
Description copied from interface:IDOMFactoryCreates an Element with a namespace.- Specified by:
newElementin interfaceIDOMFactory
-
newElement
Description copied from interface:IDOMFactoryCreates an Element without namespace.- Specified by:
newElementin interfaceIDOMFactory
-
newProcessingInstruction
Description copied from interface:IDOMFactoryCreates a processing instruction.- Specified by:
newProcessingInstructionin interfaceIDOMFactorydata- the raw data; null for empty
-
newEntityRef
Description copied from interface:IDOMFactoryCreates an EntityReference.- Specified by:
newEntityRefin interfaceIDOMFactory- Parameters:
name- the entity reference's name
-
newText
Description copied from interface:IDOMFactoryCreates a Text.- Specified by:
newTextin interfaceIDOMFactory
-