public class XmlParserConfigurator extends Object implements ParserConfigurator
| Constructor and Description |
|---|
XmlParserConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
ParserConfigurator |
addProperties(Map<String,Object> properties)
Adds a collection of properties with the given key-value mappings for the underlying parser.
|
ParserConfigurator |
addProperty(String key,
Object val)
Adds a property with the given key and value for the underlying parser to use.
|
XmlAdapter |
getAdapter()
Gets XML-specific adapter.
|
ClassLoader |
getClassLoader()
Returns the classloader to be used by the underlying parser.
|
List<String> |
getContextPath()
Returns the list of paths to be searched for binding information.
|
ValidationEventHandler |
getHandler()
Gets XML-specific validation handler.
|
Map<String,Object> |
getProperties()
Returns the properties associated with the underlying parser.
|
ParserConfigurator |
setAdapter(XmlAdapter adapter)
Sets XML-specific adapter.
|
ParserConfigurator |
setClassLoader(ClassLoader loader)
Sets the classloader to be used by underlying implementations.
|
ParserConfigurator |
setContextPath(List contextPath)
Sets the list of paths that implementations can search in order to find binding information.
|
ParserConfigurator |
setHandler(ValidationEventHandler handler)
Sets XML-specific validation handler.
|
public ParserConfigurator setContextPath(List contextPath)
ParserConfiguratorsetContextPath in interface ParserConfiguratorcontextPath - a list of paths that implementations can search in order to find binding
informationpublic List<String> getContextPath()
ParserConfiguratorgetContextPath in interface ParserConfiguratorpublic ParserConfigurator setClassLoader(ClassLoader loader)
ParserConfiguratorsetClassLoader in interface ParserConfiguratorloader - the classloader for the parser to usepublic ClassLoader getClassLoader()
ParserConfiguratorgetClassLoader in interface ParserConfiguratorpublic ParserConfigurator setHandler(ValidationEventHandler handler)
ParserConfiguratorThis is one of two XML-specific settings on the configurator. As XML is a ubiquitous externalizable format, these concessions have been made to provide first-class support to its parsers.
setHandler in interface ParserConfiguratorhandler - the validation handler to pass to the underlying parserpublic ValidationEventHandler getHandler()
ParserConfiguratorgetHandler in interface ParserConfiguratorpublic ParserConfigurator setAdapter(XmlAdapter adapter)
ParserConfiguratorThis is one of two XML-specific settings on the configurator. As XML is a ubiquitous externalizable format, these concessions have been made to provide first-class support to its parsers.
setAdapter in interface ParserConfiguratoradapter - the adapter to pass to the underlying parserpublic XmlAdapter getAdapter()
ParserConfiguratorgetAdapter in interface ParserConfiguratorpublic ParserConfigurator addProperty(String key, Object val)
ParserConfiguratoraddProperty in interface ParserConfiguratorkey - the unique key for the entryval - the value of the propertypublic ParserConfigurator addProperties(Map<String,Object> properties)
ParserConfiguratoraddProperties in interface ParserConfiguratorproperties - a collection of key-value objects to setpublic Map<String,Object> getProperties()
ParserConfiguratorgetProperties in interface ParserConfiguratorThis work is licensed under a Creative Commons Attribution 4.0 International License.