|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.dom.AbstractNode | +--org.apache.batik.dom.AbstractParentNode | +--org.apache.batik.dom.AbstractDocument | +--org.apache.batik.dom.svg.SVGOMDocument
This class implements SVGDocument
.
Inner classes inherited from class org.apache.batik.dom.AbstractParentNode |
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
Field Summary | |
protected CSSEngine |
cssEngine
The CSS engine. |
protected AbstractView |
defaultView
The default view. |
protected LocalizableSupport |
localizableSupport
The localizable support for the error messages. |
protected boolean |
readonly
Is this document immutable? |
protected java.lang.String |
referrer
The string representing the referrer. |
protected static java.lang.String |
RESOURCES
The error messages bundle class name. |
protected java.net.URL |
url
The url of the document. |
Fields inherited from class org.apache.batik.dom.AbstractDocument |
documentEventSupport, elementsByTagNames, elementsByTagNamesNS, eventsEnabled, implementation, traversalSupport |
Fields inherited from class org.apache.batik.dom.AbstractParentNode |
childNodes |
Fields inherited from class org.apache.batik.dom.AbstractNode |
EMPTY_NODE_LIST, eventSupport, ownerDocument |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
protected |
SVGOMDocument()
Creates a new uninitialized document. |
|
SVGOMDocument(DocumentType dt,
DOMImplementation impl)
Creates a new document. |
Method Summary | |
void |
clearViewCSS()
Clears the view CSS. |
protected Node |
copyInto(Node n)
Copy the fields of the current node into the given node. |
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) . |
protected Node |
deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node. |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Implements Localizable.formatMessage(String,Object[]) . |
protected static Element |
getById(java.lang.String id,
Node node)
An auxiliary method used by getElementById. |
CSSEngine |
getCSSEngine()
Returns the CSS engine. |
AbstractView |
getDefaultView()
DOM: Implements DocumentView.getDefaultView() . |
java.lang.String |
getDomain()
DOM: Implements SVGDocument.getDomain() . |
Element |
getElementById(java.lang.String elementId)
DOM: Implements Document.getElementById(String) . |
CSSStyleDeclaration |
getOverrideStyle(Element elt,
java.lang.String pseudoElt)
DOM: Implements DocumentCSS.getOverrideStyle(Element,String) . |
java.lang.String |
getReferrer()
DOM: Implements SVGDocument.getReferrer() . |
SVGSVGElement |
getRootElement()
DOM: Implements SVGDocument.getRootElement() . |
StyleSheetList |
getStyleSheets()
DOM: Implements DocumentStyle.getStyleSheets() . |
java.lang.String |
getTitle()
DOM: Implements SVGDocument.getTitle() . |
java.lang.String |
getURL()
DOM: Implements SVGDocument.getURL() |
java.net.URL |
getURLObject()
Returns the URI of the document. |
boolean |
isReadonly()
Tests whether this node is readonly. |
protected Node |
newNode()
Returns a new uninitialized instance of this object's class. |
void |
setCSSEngine(CSSEngine ctx)
Sets the CSS engine. |
void |
setLocale(java.util.Locale l)
Implements Localizable.setLocale(Locale) . |
void |
setReadonly(boolean v)
Sets this node readonly attribute. |
void |
setReferrer(java.lang.String s)
Sets the referrer string. |
void |
setURLObject(java.net.URL url)
Sets the URI of the document. |
Methods inherited from class org.apache.batik.dom.AbstractDocument |
checkChildType, cloneNode, createEvent, createNodeIterator, createTreeWalker, deepExport, detachNodeIterator, export, getCurrentDocument, getDoctype, getDocumentElement, getElementsByTagName, getElementsByTagNameNS, getEventsEnabled, getImplementation, getLocale, getNodeName, getNodeType, importNode, nodeToBeRemoved, putElementsByTagName, putElementsByTagNameNS, setDoctype, setEventsEnabled |
Methods inherited from class org.apache.batik.dom.AbstractParentNode |
appendChild, checkAndRemove, deepExport, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, hasChildNodes, insertBefore, nodeAdded, normalize, removeChild, replaceChild |
Methods inherited from class org.apache.batik.dom.AbstractNode |
addEventListener, createDOMException, dispatchEvent, export, fireDOMCharacterDataModifiedEvent, getAttributes, getEventSupport, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getParentNodeEventTarget, getPrefix, getPreviousSibling, hasAttributes, isSupported, removeEventListener, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setSpecified |
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 |
getDoctype, getDocumentElement, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.w3c.dom.events.DocumentEvent |
createEvent |
Field Detail |
protected static final java.lang.String RESOURCES
protected transient LocalizableSupport localizableSupport
protected java.lang.String referrer
protected java.net.URL url
protected transient boolean readonly
protected transient AbstractView defaultView
protected transient CSSEngine cssEngine
Constructor Detail |
protected SVGOMDocument()
public SVGOMDocument(DocumentType dt, DOMImplementation impl)
Method Detail |
public void setCSSEngine(CSSEngine ctx)
public CSSEngine getCSSEngine()
public void setLocale(java.util.Locale l)
Localizable.setLocale(Locale)
.setLocale
in class AbstractDocument
org.apache.batik.i18n.Localizable
l
- The locale to set.public java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args) throws java.util.MissingResourceException
Localizable.formatMessage(String,Object[])
.formatMessage
in class AbstractDocument
org.apache.batik.i18n.Localizable
key
- The key used to retreive the message from the resource
bundle.args
- The objects that compose the message.java.util.MissingResourceException
- if the key is not in the bundle.public java.lang.String getTitle()
SVGDocument.getTitle()
.getTitle
in interface SVGDocument
public java.lang.String getReferrer()
SVGDocument.getReferrer()
.getReferrer
in interface SVGDocument
public void setReferrer(java.lang.String s)
public java.lang.String getDomain()
SVGDocument.getDomain()
.getDomain
in interface SVGDocument
public SVGSVGElement getRootElement()
SVGDocument.getRootElement()
.getRootElement
in interface SVGDocument
public java.lang.String getURL()
SVGDocument.getURL()
getURL
in interface SVGDocument
public java.net.URL getURLObject()
public void setURLObject(java.net.URL url)
public Element createElement(java.lang.String tagName) throws DOMException
Document.createElement(String)
.createElement
in interface Document
org.w3c.dom.Document
tagNameThe
- name of the element type to instantiate. For XML,
this is case-sensitive. For HTML, the tagName
parameter may be provided in any case, but it must be mapped to the
canonical uppercase form by the DOM implementation.Element
object with the
nodeName
attribute set to tagName
, and
localName
, prefix
, and
namespaceURI
set to null
.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.public DocumentFragment createDocumentFragment()
Document.createDocumentFragment()
.createDocumentFragment
in interface Document
org.w3c.dom.Document
DocumentFragment
.public Text createTextNode(java.lang.String data)
Document.createTextNode(String)
.createTextNode
in interface Document
org.w3c.dom.Document
dataThe
- data for the node.Text
object.public Comment createComment(java.lang.String data)
Document.createComment(String)
.createComment
in interface Document
org.w3c.dom.Document
dataThe
- data for the node.Comment
object.public CDATASection createCDATASection(java.lang.String data) throws DOMException
Document.createCDATASection(String)
createCDATASection
in interface Document
org.w3c.dom.Document
dataThe
- data for the CDATASection
contents.CDATASection
object.DOMException
- NOT_SUPPORTED_ERR: Raised if this document is an HTML document.public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws DOMException
Document.createProcessingInstruction(String,String)
.createProcessingInstruction
in interface Document
public Attr createAttribute(java.lang.String name) throws DOMException
Document.createAttribute(String)
.createAttribute
in interface Document
org.w3c.dom.Document
nameThe
- name of the attribute.Attr
object with the nodeName
attribute set to name
, and localName
,
prefix
, and namespaceURI
set to
null
. The value of the attribute is the empty string.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.public EntityReference createEntityReference(java.lang.String name) throws DOMException
Document.createEntityReference(String)
.createEntityReference
in interface Document
org.w3c.dom.Document
nameThe
- name of the entity to reference.EntityReference
object.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.
public Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
Document.createAttributeNS(String,String)
.createAttributeNS
in interface Document
org.w3c.dom.Document
namespaceURIThe
- namespace URI of the attribute to create.qualifiedNameThe
- qualified name of the attribute to instantiate.Attr
object with the following attributes:
AttributeValueNode.nodeName
qualifiedName
Node.namespaceURI
namespaceURI
Node.prefix
prefix, extracted from
qualifiedName
, or null
if there is no
prefixNode.localName
local name, extracted from
qualifiedName
Attr.name
qualifiedName
Node.nodeValue
the empty
stringDOMException
- INVALID_CHARACTER_ERR: Raised if the specified qualified name
contains an illegal character.
qualifiedName
is
malformed, if the qualifiedName
has a prefix and the
namespaceURI
is null
, if the
qualifiedName
has a prefix that is "xml" and the
namespaceURI
is different from "
http://www.w3.org/XML/1998/namespace", or if the
qualifiedName
is "xmlns" and the
namespaceURI
is different from "
http://www.w3.org/2000/xmlns/".public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
Document.createElementNS(String,String)
.createElementNS
in interface Document
org.w3c.dom.Document
namespaceURIThe
- namespace URI of the element to create.qualifiedNameThe
- qualified name of the element type to
instantiate.Element
object with the following
attributes:AttributeValueNode.nodeName
qualifiedName
Node.namespaceURI
namespaceURI
Node.prefix
prefix, extracted
from qualifiedName
, or null
if there is
no prefixNode.localName
local name, extracted from
qualifiedName
Element.tagName
qualifiedName
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified qualified name
contains an illegal character.
qualifiedName
is
malformed, if the qualifiedName
has a prefix and the
namespaceURI
is null
, or if the
qualifiedName
has a prefix that is "xml" and the
namespaceURI
is different from "
http://www.w3.org/XML/1998/namespace" .public Element getElementById(java.lang.String elementId)
Document.getElementById(String)
.getElementById
in interface Document
org.w3c.dom.Document
elementIdThe
- unique id
value for an element.protected static Element getById(java.lang.String id, Node node)
public boolean isReadonly()
public void setReadonly(boolean v)
public StyleSheetList getStyleSheets()
DocumentStyle.getStyleSheets()
.getStyleSheets
in interface DocumentStyle
public AbstractView getDefaultView()
DocumentView.getDefaultView()
.getDefaultView
in interface DocumentView
public void clearViewCSS()
public CSSStyleDeclaration getOverrideStyle(Element elt, java.lang.String pseudoElt)
DocumentCSS.getOverrideStyle(Element,String)
.getOverrideStyle
in interface DocumentCSS
org.w3c.dom.css.DocumentCSS
elt
- The element whose style is to be modified. This parameter
cannot be null.pseudoElt
- The pseudo-element or null
if none.protected Node newNode()
newNode
in class AbstractNode
protected Node copyInto(Node n)
copyInto
in class AbstractDocument
n
- a node of the type of this.protected Node deepCopyInto(Node n)
deepCopyInto
in class AbstractDocument
n
- a node of the type of this.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |