Package org.apache.batik.dom
Class AbstractDOMImplementation
java.lang.Object
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe supported features.protected LocalizableSupport
The localizable support for the error messages.protected static final String
The error messages bundle class name. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new AbstractDOMImplementation object. -
Method Summary
Modifier and TypeMethodDescriptionCreates an DocumentEventSupport object suitable for use with this implementation.Creates an EventSupport object for a given node.formatMessage
(String key, Object[] args) ImplementsLocalizable.formatMessage(String,Object[])
.getFeature
(String feature, String version) DOM: ImplementsDOMImplementation.getFeature(String,String)
.ImplementsLocalizable.getLocale()
.boolean
hasFeature
(String feature, String version) DOM: ImplementsDOMImplementation.hasFeature(String,String)
.protected void
protected void
registerFeature
(String name, Object value) Registers a DOM feature.void
ImplementsLocalizable.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 Details
-
RESOURCES
The error messages bundle class name.- See Also:
-
localizableSupport
The localizable support for the error messages. -
features
The supported features.
-
-
Constructor Details
-
AbstractDOMImplementation
protected AbstractDOMImplementation()Creates a new AbstractDOMImplementation object.
-
-
Method Details
-
registerFeature
Registers a DOM feature. -
hasFeature
DOM: ImplementsDOMImplementation.hasFeature(String,String)
.- Specified by:
hasFeature
in interfaceDOMImplementation
-
getFeature
DOM: ImplementsDOMImplementation.getFeature(String,String)
. No compound document support, so just return this DOMImlpementation where appropriate.- Specified by:
getFeature
in interfaceDOMImplementation
-
createDocumentEventSupport
Creates an DocumentEventSupport object suitable for use with this implementation. -
createEventSupport
Creates an EventSupport object for a given node. -
setLocale
ImplementsLocalizable.setLocale(Locale)
.- Specified by:
setLocale
in interfaceLocalizable
- Parameters:
l
- The locale to set.
-
getLocale
ImplementsLocalizable.getLocale()
.- Specified by:
getLocale
in interfaceLocalizable
-
initLocalizable
protected void initLocalizable() -
formatMessage
ImplementsLocalizable.formatMessage(String,Object[])
.- Specified by:
formatMessage
in interfaceLocalizable
- 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.
-