org.apache.batik.dom
Class AbstractDOMImplementation

java.lang.Object
  extended by org.apache.batik.dom.AbstractDOMImplementation
All Implemented Interfaces:
Serializable, org.apache.batik.i18n.Localizable, DOMImplementation
Direct Known Subclasses:
ExtensibleDOMImplementation, GenericDOMImplementation

public abstract class AbstractDOMImplementation
extends Object
implements DOMImplementation, org.apache.batik.i18n.Localizable, Serializable

This class implements the DOMImplementation, DOMImplementationCSS interfaces.

Version:
$Id: AbstractDOMImplementation.java 1733416 2016-03-03 07:07:13Z gadams $
Author:
Stephane Hillion
See Also:
Serialized Form

Field Summary
protected  HashTable features
          The supported features.
protected  org.apache.batik.i18n.LocalizableSupport localizableSupport
          The localizable support for the error messages.
protected static String RESOURCES
          The error messages bundle class name.
 
Constructor Summary
protected AbstractDOMImplementation()
          Creates a new AbstractDOMImplementation object.
 
Method Summary
 DocumentEventSupport createDocumentEventSupport()
          Creates an DocumentEventSupport object suitable for use with this implementation.
 EventSupport createEventSupport(AbstractNode n)
          Creates an EventSupport object for a given node.
 String formatMessage(String key, Object[] args)
          Implements Localizable.formatMessage(String,Object[]).
 Object getFeature(String feature, String version)
          DOM: Implements DOMImplementation.getFeature(String,String).
 Locale getLocale()
          Implements Localizable.getLocale().
 boolean hasFeature(String feature, String version)
          DOM: Implements DOMImplementation.hasFeature(String,String).
protected  void initLocalizable()
           
protected  void registerFeature(String name, Object value)
          Registers a DOM feature.
 void setLocale(Locale l)
          Implements Localizable.setLocale(Locale).
 
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, createDocumentType
 

Field Detail

RESOURCES

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

See Also:
Constant Field Values

localizableSupport

protected org.apache.batik.i18n.LocalizableSupport localizableSupport
The localizable support for the error messages.


features

protected final HashTable features
The supported features.

Constructor Detail

AbstractDOMImplementation

protected AbstractDOMImplementation()
Creates a new AbstractDOMImplementation object.

Method Detail

registerFeature

protected void registerFeature(String name,
                               Object value)
Registers a DOM feature.


hasFeature

public boolean hasFeature(String feature,
                          String version)
DOM: Implements DOMImplementation.hasFeature(String,String).

Specified by:
hasFeature in interface DOMImplementation

getFeature

public Object getFeature(String feature,
                         String version)
DOM: Implements DOMImplementation.getFeature(String,String). No compound document support, so just return this DOMImlpementation where appropriate.

Specified by:
getFeature in interface DOMImplementation

createDocumentEventSupport

public DocumentEventSupport createDocumentEventSupport()
Creates an DocumentEventSupport object suitable for use with this implementation.


createEventSupport

public EventSupport createEventSupport(AbstractNode n)
Creates an EventSupport object for a given node.


setLocale

public void setLocale(Locale l)
Implements Localizable.setLocale(Locale).

Specified by:
setLocale in interface org.apache.batik.i18n.Localizable

getLocale

public Locale getLocale()
Implements Localizable.getLocale().

Specified by:
getLocale in interface org.apache.batik.i18n.Localizable

initLocalizable

protected void initLocalizable()

formatMessage

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

Specified by:
formatMessage in interface org.apache.batik.i18n.Localizable
Throws:
MissingResourceException


Copyright © 2000–2017 Apache Software Foundation. All rights reserved.