public abstract class AbstractDOMImplementation extends Object implements DOMImplementation, Localizable, Serializable
DOMImplementation
,
DOMImplementationCSS
interfaces.Modifier and Type | Field and Description |
---|---|
protected HashMap<String,Object> |
features
The supported features.
|
protected LocalizableSupport |
localizableSupport
The localizable support for the error messages.
|
protected static 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.
|
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) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDocument, createDocumentType
protected static final String RESOURCES
protected LocalizableSupport localizableSupport
protected AbstractDOMImplementation()
public boolean hasFeature(String feature, String version)
DOMImplementation.hasFeature(String,String)
.hasFeature
in interface DOMImplementation
public Object getFeature(String feature, 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(Locale l)
Localizable.setLocale(Locale)
.setLocale
in interface Localizable
l
- The locale to set.public Locale getLocale()
Localizable.getLocale()
.getLocale
in interface Localizable
protected void initLocalizable()
public String formatMessage(String key, Object[] args) throws 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.MissingResourceException
- if the key is not in the bundle.Copyright © 2000–2023 Apache Software Foundation. All rights reserved.