public abstract class AbstractDOMImplementation extends java.lang.Object implements DOMImplementation, Localizable, java.io.Serializable
DOMImplementation
,
DOMImplementationCSS
interfaces.Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
features
The supported features.
|
protected LocalizableSupport |
localizableSupport
The localizable support for the error messages.
|
protected static java.lang.String |
RESOURCES
The error messages bundle class name.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractDOMImplementation()
Creates a new AbstractDOMImplementation object.
|
Modifier and Type | Method and Description |
---|---|
DocumentEventSupport |
createDocumentEventSupport()
Creates an DocumentEventSupport object suitable for use with this implementation.
|
EventSupport |
createEventSupport(AbstractNode n)
Creates an EventSupport object for a given node.
|
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Implements
Localizable.formatMessage(String,Object[]) . |
java.lang.Object |
getFeature(java.lang.String feature,
java.lang.String version)
DOM: Implements
DOMImplementation.getFeature(String,String) . |
java.util.Locale |
getLocale()
Implements
Localizable.getLocale() . |
boolean |
hasFeature(java.lang.String feature,
java.lang.String version)
DOM: Implements
DOMImplementation.hasFeature(String,String) . |
protected void |
initLocalizable() |
protected void |
registerFeature(java.lang.String name,
java.lang.Object value)
Registers a DOM feature.
|
void |
setLocale(java.util.Locale l)
Implements
Localizable.setLocale(Locale) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDocument, createDocumentType
protected static final java.lang.String RESOURCES
protected LocalizableSupport localizableSupport
protected final java.util.HashMap<java.lang.String,java.lang.Object> features
protected AbstractDOMImplementation()
protected void registerFeature(java.lang.String name, java.lang.Object value)
public boolean hasFeature(java.lang.String feature, java.lang.String version)
DOMImplementation.hasFeature(String,String)
.hasFeature
in interface DOMImplementation
public java.lang.Object getFeature(java.lang.String feature, java.lang.String version)
DOMImplementation.getFeature(String,String)
.
No compound document support, so just return this DOMImlpementation
where appropriate.getFeature
in interface DOMImplementation
public DocumentEventSupport createDocumentEventSupport()
public EventSupport createEventSupport(AbstractNode n)
public void setLocale(java.util.Locale l)
Localizable.setLocale(Locale)
.setLocale
in interface Localizable
l
- The locale to set.public java.util.Locale getLocale()
Localizable.getLocale()
.getLocale
in interface Localizable
protected void initLocalizable()
public java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args) throws java.util.MissingResourceException
Localizable.formatMessage(String,Object[])
.formatMessage
in interface Localizable
key
- The key used to retreive the message from the resource
bundle.args
- The objects that compose the message.java.util.MissingResourceException
- if the key is not in the bundle.Copyright © 2022 Apache Software Foundation. All Rights Reserved.