DocumentImplpublic class DocumentImpl extends CoreDocumentImpl Our own document implementation, which knows how to create an element
with line/column information |
Fields Summary |
---|
protected DOMNodePool | fNodePool |
Constructors Summary |
---|
public DocumentImpl()Create a document
super();
|
Methods Summary |
---|
public org.w3c.dom.Attr | createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String localName)Create attribute node. If node pool is available use
attribute node from the pool.
if (fNodePool != null) {
AttrNSImpl attr = fNodePool.getAttrNode();
attr.setValues(this, namespaceURI, qualifiedName, localName);
return attr;
}
return new AttrNSImpl(this, namespaceURI, qualifiedName, localName);
| public org.w3c.dom.Element | createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String localpart, int lineNum, int columnNum)create an element with line/colument information
if (fNodePool !=null) {
ElementNSImpl element = fNodePool.getElementNode();
element.setValues(this, namespaceURI, qualifiedName,
localpart, lineNum, columnNum);
return element;
}
return new ElementNSImpl(this, namespaceURI, qualifiedName,
localpart, lineNum, columnNum);
| public org.w3c.dom.Text | createTextNode(java.lang.String data)Create a text node. If node pool is available use text node from the pool.
if (fNodePool != null) {
TextImpl text = fNodePool.getTextNode();
text.setValues(this, data);
return text;
}
return new TextImpl(this, data);
|
|