Package org.apache.batik.dom
Class ExtensibleDOMImplementation
- java.lang.Object
-
- org.apache.batik.dom.AbstractDOMImplementation
-
- org.apache.batik.dom.ExtensibleDOMImplementation
-
- All Implemented Interfaces:
java.io.Serializable,StyleSheetFactory,Localizable,org.w3c.dom.css.DOMImplementationCSS,org.w3c.dom.DOMImplementation
- Direct Known Subclasses:
SVGDOMImplementation
public abstract class ExtensibleDOMImplementation extends AbstractDOMImplementation implements org.w3c.dom.css.DOMImplementationCSS, StyleSheetFactory
This class implements theDOMImplementationinterface. It allows the user to extend the set of elements supported by a Document, directly or through the Service API (seeService).- Version:
- $Id: ExtensibleDOMImplementation.java 1810083 2017-09-29 10:39:45Z ssteiner $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExtensibleDOMImplementation.ElementFactoryThis interface represents a factory for elements.
-
Field Summary
Fields Modifier and Type Field Description protected DoublyIndexedTablecustomFactoriesThe custom elements factories.protected java.util.ListcustomShorthandManagersThe custom shorthand value managers.protected java.util.ListcustomValueManagersThe custom value managers.protected static java.util.Listextensions-
Fields inherited from class org.apache.batik.dom.AbstractDOMImplementation
features, localizableSupport, RESOURCES
-
-
Constructor Summary
Constructors Constructor Description ExtensibleDOMImplementation()Creates a new DOMImplementation.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CSSEnginecreateCSSEngine(AbstractStylableDocument doc, CSSContext ctx)Creates new CSSEngine and attach it to the document.abstract CSSEnginecreateCSSEngine(AbstractStylableDocument doc, CSSContext ctx, ExtendedParser ep, ValueManager[] vms, ShorthandManager[] sms)org.w3c.dom.DocumentTypecreateDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)DOM: Implements DOMImplementation#createDocumentType(String,String,String).org.w3c.dom.ElementcreateElementNS(AbstractDocument document, java.lang.String namespaceURI, java.lang.String qualifiedName)Implements the behavior of Document.createElementNS() for this DOM implementation.abstract org.w3c.dom.css.ViewCSScreateViewCSS(AbstractStylableDocument doc)Creates a ViewCSS.protected static java.util.ListgetDomExtensions()voidregisterCustomCSSShorthandManager(ShorthandManager sm)Allows the user to register a new shorthand CSS value manager.voidregisterCustomCSSValueManager(ValueManager vm)Allows the user to register a new CSS value manager.voidregisterCustomElementFactory(java.lang.String namespaceURI, java.lang.String localName, ExtensibleDOMImplementation.ElementFactory factory)Allows the user to register a new element factory.-
Methods inherited from class org.apache.batik.dom.AbstractDOMImplementation
createDocumentEventSupport, createEventSupport, formatMessage, getFeature, getLocale, hasFeature, initLocalizable, registerFeature, setLocale
-
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.DOMImplementation
createDocument, getFeature, hasFeature
-
Methods inherited from interface org.apache.batik.dom.StyleSheetFactory
createStyleSheet
-
-
-
-
Field Detail
-
customFactories
protected DoublyIndexedTable customFactories
The custom elements factories.
-
customValueManagers
protected java.util.List customValueManagers
The custom value managers.
-
customShorthandManagers
protected java.util.List customShorthandManagers
The custom shorthand value managers.
-
extensions
protected static java.util.List extensions
-
-
Method Detail
-
registerCustomElementFactory
public void registerCustomElementFactory(java.lang.String namespaceURI, java.lang.String localName, ExtensibleDOMImplementation.ElementFactory factory)Allows the user to register a new element factory.
-
registerCustomCSSValueManager
public void registerCustomCSSValueManager(ValueManager vm)
Allows the user to register a new CSS value manager.
-
registerCustomCSSShorthandManager
public void registerCustomCSSShorthandManager(ShorthandManager sm)
Allows the user to register a new shorthand CSS value manager.
-
createCSSEngine
public CSSEngine createCSSEngine(AbstractStylableDocument doc, CSSContext ctx)
Creates new CSSEngine and attach it to the document.
-
createCSSEngine
public abstract CSSEngine createCSSEngine(AbstractStylableDocument doc, CSSContext ctx, ExtendedParser ep, ValueManager[] vms, ShorthandManager[] sms)
-
createViewCSS
public abstract org.w3c.dom.css.ViewCSS createViewCSS(AbstractStylableDocument doc)
Creates a ViewCSS.
-
createElementNS
public org.w3c.dom.Element createElementNS(AbstractDocument document, java.lang.String namespaceURI, java.lang.String qualifiedName)
Implements the behavior of Document.createElementNS() for this DOM implementation.
-
createDocumentType
public org.w3c.dom.DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)DOM: Implements DOMImplementation#createDocumentType(String,String,String).- Specified by:
createDocumentTypein interfaceorg.w3c.dom.DOMImplementation
-
getDomExtensions
protected static java.util.List getDomExtensions()
-
-