public final class DOMConfigurationImpl extends Object implements DOMConfiguration
| Constructor and Description |
|---|
DOMConfigurationImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSetParameter(String name,
Object value)
Check if setting a parameter to a specific value is supported.
|
Object |
getParameter(String name)
Return the value of a parameter if known.
|
DOMStringList |
getParameterNames()
The list of the parameters supported by this
DOMConfiguration object and for which at least one value
can be set by the application. |
void |
normalize(Node node) |
void |
setParameter(String name,
Object value)
Set the value of a parameter.
|
public boolean canSetParameter(String name, Object value)
DOMConfigurationcanSetParameter in interface DOMConfigurationname - The name of the parameter to check.value - An object. if null, the returned value is
true.true if the parameter could be successfully set
to the specified value, or false if the parameter is
not recognized or the requested value is not supported. This does
not change the current value of the parameter itself.public void setParameter(String name, Object value) throws DOMException
DOMConfigurationsetParameter in interface DOMConfigurationname - The name of the parameter to set.value - The new value or null if the user wishes to
unset the parameter. While the type of the value parameter is
defined as DOMUserData, the object type must match the
type defined by the definition of the parameter. For example, if
the parameter is "error-handler", the value must be of type
DOMErrorHandler.DOMException - NOT_FOUND_ERR: Raised when the parameter name is not recognized.
public Object getParameter(String name) throws DOMException
DOMConfigurationgetParameter in interface DOMConfigurationname - The name of the parameter.null if no object has been associated or if the
parameter is not supported.DOMException - NOT_FOUND_ERR: Raised when the parameter name is not recognized.public DOMStringList getParameterNames()
DOMConfigurationDOMConfiguration object and for which at least one value
can be set by the application. Note that this list can also contain
parameter names defined outside this specification.getParameterNames in interface DOMConfigurationpublic void normalize(Node node)