org.apache.batik.dom

Class GenericDocument

public class GenericDocument extends AbstractDocument

This class implements the org.w3c.dom.Document, DocumentEvent.
Field Summary
protected static StringATTR_ID
Local name for 'id' attributes.
protected booleanreadonly
Is this document immutable?
Constructor Summary
protected GenericDocument()
Creates a new uninitialized document.
GenericDocument(DocumentType dt, DOMImplementation impl)
Creates a new uninitialized document.
Method Summary
AttrcreateAttribute(String name)
DOM: Implements org.w3c.dom.Document#createAttribute(String).
AttrcreateAttributeNS(String namespaceURI, String qualifiedName)
DOM: Implements org.w3c.dom.Document#createAttributeNS(String,String).
CDATASectioncreateCDATASection(String data)
DOM: Implements org.w3c.dom.Document#createCDATASection(String).
CommentcreateComment(String data)
DOM: Implements org.w3c.dom.Document#createComment(String).
DocumentFragmentcreateDocumentFragment()
DOM: Implements org.w3c.dom.Document#createDocumentFragment().
ElementcreateElement(String tagName)
DOM: Implements org.w3c.dom.Document#createElement(String).
ElementcreateElementNS(String namespaceURI, String qualifiedName)
DOM: Implements org.w3c.dom.Document#createElementNS(String,String).
EntityReferencecreateEntityReference(String name)
DOM: Implements org.w3c.dom.Document#createEntityReference(String).
ProcessingInstructioncreateProcessingInstruction(String target, String data)
DOM: Implements org.w3c.dom.Document#createProcessingInstruction(String,String).
TextcreateTextNode(String data)
DOM: Implements org.w3c.dom.Document#createTextNode(String).
booleanisId(Attr node)
Returns true if the given Attr node represents an 'id' for this document.
booleanisReadonly()
Tests whether this node is readonly.
protected NodenewNode()
Returns a new uninitialized instance of this object's class.
voidsetReadonly(boolean v)
Sets this node readonly attribute.

Field Detail

ATTR_ID

protected static final String ATTR_ID
Local name for 'id' attributes.

readonly

protected boolean readonly
Is this document immutable?

Constructor Detail

GenericDocument

protected GenericDocument()
Creates a new uninitialized document.

GenericDocument

public GenericDocument(DocumentType dt, DOMImplementation impl)
Creates a new uninitialized document.

Method Detail

createAttribute

public Attr createAttribute(String name)
DOM: Implements org.w3c.dom.Document#createAttribute(String).

createAttributeNS

public Attr createAttributeNS(String namespaceURI, String qualifiedName)
DOM: Implements org.w3c.dom.Document#createAttributeNS(String,String).

createCDATASection

public CDATASection createCDATASection(String data)
DOM: Implements org.w3c.dom.Document#createCDATASection(String).

createComment

public Comment createComment(String data)
DOM: Implements org.w3c.dom.Document#createComment(String).

createDocumentFragment

public DocumentFragment createDocumentFragment()
DOM: Implements org.w3c.dom.Document#createDocumentFragment().

createElement

public Element createElement(String tagName)
DOM: Implements org.w3c.dom.Document#createElement(String).

createElementNS

public Element createElementNS(String namespaceURI, String qualifiedName)
DOM: Implements org.w3c.dom.Document#createElementNS(String,String).

createEntityReference

public EntityReference createEntityReference(String name)
DOM: Implements org.w3c.dom.Document#createEntityReference(String).

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(String target, String data)
DOM: Implements org.w3c.dom.Document#createProcessingInstruction(String,String).

Returns: a StyleSheetProcessingInstruction if target is "xml-stylesheet" or a GenericProcessingInstruction otherwise.

createTextNode

public Text createTextNode(String data)
DOM: Implements org.w3c.dom.Document#createTextNode(String).

isId

public boolean isId(Attr node)
Returns true if the given Attr node represents an 'id' for this document.

isReadonly

public boolean isReadonly()
Tests whether this node is readonly.

newNode

protected Node newNode()
Returns a new uninitialized instance of this object's class.

setReadonly

public void setReadonly(boolean v)
Sets this node readonly attribute.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.