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)
ParserConfigurator
setContextPath
in interface ParserConfigurator
contextPath
- a list of paths that implementations can search in order to find binding
informationpublic List<String> getContextPath()
ParserConfigurator
getContextPath
in interface ParserConfigurator
public ParserConfigurator setClassLoader(ClassLoader loader)
ParserConfigurator
setClassLoader
in interface ParserConfigurator
loader
- the classloader for the parser to usepublic ClassLoader getClassLoader()
ParserConfigurator
getClassLoader
in interface ParserConfigurator
public ParserConfigurator setHandler(ValidationEventHandler handler)
ParserConfigurator
This 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 ParserConfigurator
handler
- the validation handler to pass to the underlying parserpublic ValidationEventHandler getHandler()
ParserConfigurator
getHandler
in interface ParserConfigurator
public ParserConfigurator setAdapter(XmlAdapter adapter)
ParserConfigurator
This 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 ParserConfigurator
adapter
- the adapter to pass to the underlying parserpublic XmlAdapter getAdapter()
ParserConfigurator
getAdapter
in interface ParserConfigurator
public ParserConfigurator addProperty(String key, Object val)
ParserConfigurator
addProperty
in interface ParserConfigurator
key
- the unique key for the entryval
- the value of the propertypublic ParserConfigurator addProperties(Map<String,Object> properties)
ParserConfigurator
addProperties
in interface ParserConfigurator
properties
- a collection of key-value objects to setpublic Map<String,Object> getProperties()
ParserConfigurator
getProperties
in interface ParserConfigurator
This work is licensed under a Creative Commons Attribution 4.0 International License.