org.apache.batik.dom

Class ExtensibleDOMImplementation

public abstract class ExtensibleDOMImplementation extends AbstractDOMImplementation implements DOMImplementationCSS, StyleSheetFactory, Localizable

This class implements the org.w3c.dom.DOMImplementation interface. It allows the user to extend the set of elements supported by a Document, directly or through the Service API (see Service).
Nested Class Summary
interfaceExtensibleDOMImplementation.ElementFactory
This interface represents a factory for elements.
Field Summary
protected DoublyIndexedTablecustomFactories
The custom elements factories.
protected ListcustomShorthandManagers
The custom shorthand value managers.
protected ListcustomValueManagers
The custom value managers.
protected static Listextensions
protected LocalizableSupportlocalizableSupport
The localizable support for the error messages.
protected static StringRESOURCES
The error messages bundle class name.
Constructor Summary
ExtensibleDOMImplementation()
Creates a new DOMImplementation.
Method Summary
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)
ElementcreateElementNS(AbstractDocument document, String namespaceURI, String qualifiedName)
Implements the behavior of Document.createElementNS() for this DOM implementation.
abstract ViewCSScreateViewCSS(AbstractStylableDocument doc)
Creates a ViewCSS.
StringformatMessage(String key, Object[] args)
Implements (String,Object[]).
protected static ListgetDomExtensions()
LocalegetLocale()
Implements getLocale.
protected voidinitLocalizable()
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(String namespaceURI, String localName, ExtensibleDOMImplementation.ElementFactory factory)
Allows the user to register a new element factory.
voidsetLocale(Locale l)
Implements setLocale.

Field Detail

customFactories

protected DoublyIndexedTable customFactories
The custom elements factories.

customShorthandManagers

protected List customShorthandManagers
The custom shorthand value managers.

customValueManagers

protected List customValueManagers
The custom value managers.

extensions

protected static List extensions

localizableSupport

protected LocalizableSupport localizableSupport
The localizable support for the error messages.

RESOURCES

protected static final String RESOURCES
The error messages bundle class name.

Constructor Detail

ExtensibleDOMImplementation

public ExtensibleDOMImplementation()
Creates a new DOMImplementation.

Method Detail

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)

createElementNS

public Element createElementNS(AbstractDocument document, String namespaceURI, String qualifiedName)
Implements the behavior of Document.createElementNS() for this DOM implementation.

createViewCSS

public abstract ViewCSS createViewCSS(AbstractStylableDocument doc)
Creates a ViewCSS.

formatMessage

public String formatMessage(String key, Object[] args)
Implements (String,Object[]).

getDomExtensions

protected static List getDomExtensions()

getLocale

public Locale getLocale()
Implements getLocale.

initLocalizable

protected void initLocalizable()

registerCustomCSSShorthandManager

public void registerCustomCSSShorthandManager(ShorthandManager sm)
Allows the user to register a new shorthand CSS value manager.

registerCustomCSSValueManager

public void registerCustomCSSValueManager(ValueManager vm)
Allows the user to register a new CSS value manager.

registerCustomElementFactory

public void registerCustomElementFactory(String namespaceURI, String localName, ExtensibleDOMImplementation.ElementFactory factory)
Allows the user to register a new element factory.

setLocale

public void setLocale(Locale l)
Implements setLocale.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.