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, waitcreateDocument, createDocumentTypeprotected static final String RESOURCES
protected LocalizableSupport localizableSupport
protected AbstractDOMImplementation()
public boolean hasFeature(String feature, String version)
DOMImplementation.hasFeature(String,String).hasFeature in interface DOMImplementationpublic Object getFeature(String feature, String version)
DOMImplementation.getFeature(String,String).
No compound document support, so just return this DOMImlpementation
where appropriate.getFeature in interface DOMImplementationpublic DocumentEventSupport createDocumentEventSupport()
public EventSupport createEventSupport(AbstractNode n)
public void setLocale(Locale l)
Localizable.setLocale(Locale).setLocale in interface Localizablel - The locale to set.public Locale getLocale()
Localizable.getLocale().getLocale in interface Localizableprotected void initLocalizable()
public String formatMessage(String key, Object[] args) throws MissingResourceException
Localizable.formatMessage(String,Object[]).formatMessage in interface Localizablekey - 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–2020 Apache Software Foundation. All rights reserved.