Package org.zkoss.idom.input
Interface IDOMFactory
- All Known Implementing Classes:
DefaultIDOMFactory
public interface IDOMFactory
A DOM factory. It is the interface used by SaxBuild to create
corresponding vertices. By implementing this interface or
overriding DefaultDomFactory, caller could create a set of
vertices other than the default ones.
- Author:
- tomyeh
- See Also:
-
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.
-
Method Details
-
newAttribute
Creates an Attribute without namespace. -
newAttribute
Creates an Attribute with namespace. -
newCData
Creates a CData. -
newComment
Creates a Comment. -
newDocType
Creates a DocType.- Parameters:
elementName- the root element's namepublicId- the public Id; null for emptysystemId- the system Id; null for empty
-
newDocument
Creates a Document.- Parameters:
docType- the document type; null for not available
-
newElement
Creates an Element with a namespace. -
newElement
Creates an Element without namespace. -
newProcessingInstruction
Creates a processing instruction.- Parameters:
data- the raw data; null for empty
-
newEntityRef
Creates an EntityReference.- Parameters:
name- the entity reference's name
-
newText
Creates a Text.
-