|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.idom.input.DefaultIDOMFactory
public class DefaultIDOMFactory
The default iDOM factory.
Constructor Summary | |
---|---|
DefaultIDOMFactory()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIDOMFactory()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |