|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractDocument
org.apache.batik.dom.GenericDocument
public class GenericDocument
This class implements the Document,
DocumentEvent.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractDocument |
|---|
AbstractDocument.DocumentConfiguration, AbstractDocument.DocumentError, AbstractDocument.IdSoftRef, AbstractDocument.XPathExpr, AbstractDocument.XPathNodeNSResolver |
| Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
| Field Summary | |
|---|---|
protected static java.lang.String |
ATTR_ID
Local name for 'id' attributes. |
protected boolean |
readonly
Is this document immutable? |
| Fields inherited from class org.apache.batik.dom.AbstractDocument |
|---|
documentEventSupport, documentURI, domConfig, elementsById, elementsByTagNames, elementsByTagNamesNS, eventsEnabled, implementation, inputEncoding, localizableSupport, RESOURCES, strictErrorChecking, traversalSupport, xblManager, xmlEncoding, xmlStandalone, xmlVersion |
| Fields inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
childNodes |
| Fields inherited from class org.apache.batik.dom.AbstractNode |
|---|
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers |
| Constructor Summary | |
|---|---|
protected |
GenericDocument()
Creates a new uninitialized document. |
|
GenericDocument(DocumentType dt,
DOMImplementation impl)
Creates a new uninitialized document. |
| Method Summary | |
|---|---|
Attr |
createAttribute(java.lang.String name)
DOM: Implements Document.createAttribute(String). |
Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM: Implements Document.createAttributeNS(String,String). |
CDATASection |
createCDATASection(java.lang.String data)
DOM: Implements Document.createCDATASection(String). |
Comment |
createComment(java.lang.String data)
DOM: Implements Document.createComment(String). |
DocumentFragment |
createDocumentFragment()
DOM: Implements Document.createDocumentFragment(). |
Element |
createElement(java.lang.String tagName)
DOM: Implements Document.createElement(String). |
Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM: Implements Document.createElementNS(String,String). |
EntityReference |
createEntityReference(java.lang.String name)
DOM: Implements Document.createEntityReference(String). |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
DOM: Implements Document.createProcessingInstruction(String,String). |
Text |
createTextNode(java.lang.String data)
DOM: Implements Document.createTextNode(String). |
boolean |
isId(Attr node)
Returns true if the given Attr node represents an 'id' for this document. |
boolean |
isReadonly()
Tests whether this node is readonly. |
protected Node |
newNode()
Returns a new uninitialized instance of this object's class. |
void |
setReadonly(boolean v)
Sets this node readonly attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Document |
|---|
getElementsByTagName, getElementsByTagNameNS |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setUserData |
| Field Detail |
|---|
protected static final java.lang.String ATTR_ID
protected boolean readonly
| Constructor Detail |
|---|
protected GenericDocument()
public GenericDocument(DocumentType dt,
DOMImplementation impl)
| Method Detail |
|---|
public boolean isReadonly()
public void setReadonly(boolean v)
public boolean isId(Attr node)
isId in class AbstractDocument
public Element createElement(java.lang.String tagName)
throws DOMException
Document.createElement(String).
DOMExceptionpublic DocumentFragment createDocumentFragment()
Document.createDocumentFragment().
public Text createTextNode(java.lang.String data)
Document.createTextNode(String).
public Comment createComment(java.lang.String data)
Document.createComment(String).
public CDATASection createCDATASection(java.lang.String data)
throws DOMException
Document.createCDATASection(String).
DOMException
public ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws DOMException
Document.createProcessingInstruction(String,String).
StyleSheetProcessingInstruction if target is
"xml-stylesheet" or a GenericProcessingInstruction otherwise.
DOMException
public Attr createAttribute(java.lang.String name)
throws DOMException
Document.createAttribute(String).
DOMException
public EntityReference createEntityReference(java.lang.String name)
throws DOMException
Document.createEntityReference(String).
DOMException
public Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws DOMException
Document.createElementNS(String,String).
DOMException
public Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws DOMException
Document.createAttributeNS(String,String).
DOMExceptionprotected Node newNode()
newNode in class AbstractNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||