org.apache.batik.dom
Class AbstractDOMImplementation

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

public abstract class AbstractDOMImplementation
extends Object
implements DOMImplementation, Localizable, Serializable

This class implements the DOMImplementation, DOMImplementationCSS interfaces.

See Also:
Serialized Form

Field Summary
protected  HashTable features
          The supported features.
protected  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 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 Localizable
Parameters:
l - The locale to set.

getLocale

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

Specified by:
getLocale in interface 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 Localizable
Parameters:
key - The key used to retreive the message from the resource bundle.
args - The objects that compose the message.
Throws:
MissingResourceException - if the key is not in the bundle.


Copyright © 2017 Apache Software Foundation. All Rights Reserved.