public static class SCXMLReader.Configuration extends Object
Configuration for the SCXMLReader
. The configuration properties necessary for the following are
covered:
XMLInputFactory
configuration properties such as XMLReporter
, XMLResolver
and
XMLEventAllocator
XMLStreamReader
configuration properties such as systemId
and encoding
PathResolver
to use.Constructor and Description |
---|
SCXMLReader.Configuration()
Default constructor.
|
SCXMLReader.Configuration(String factoryId,
ClassLoader classLoader,
XMLEventAllocator allocator,
Map<String,Object> properties,
XMLResolver resolver,
XMLReporter reporter,
String encoding,
String systemId,
boolean validate,
PathResolver pathResolver,
List<CustomAction> customActions,
ClassLoader customActionClassLoader,
boolean useContextClassLoaderForCustomActions)
All purpose constructor.
|
SCXMLReader.Configuration(XMLReporter reporter,
PathResolver pathResolver)
Minimal convenience constructor.
|
SCXMLReader.Configuration(XMLReporter reporter,
PathResolver pathResolver,
List<CustomAction> customActions)
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSilent()
Returns true if it is set to read models silently without any model error warning logs.
|
boolean |
isStrict()
Returns true if it is set to check model strictly with throwing exceptions on any model error.
|
void |
setSilent(boolean silent)
Turn on/off silent mode (whether to read models silently without any model error warning logs)
|
void |
setStrict(boolean strict)
Turn on/off strict model (whether to check model strictly with throwing exception on any model error)
|
public SCXMLReader.Configuration()
public SCXMLReader.Configuration(XMLReporter reporter, PathResolver pathResolver)
reporter
- The XMLReporter
to use for this reading.pathResolver
- The Commons SCXML PathResolver
to use for this reading.public SCXMLReader.Configuration(XMLReporter reporter, PathResolver pathResolver, List<CustomAction> customActions)
reporter
- The XMLReporter
to use for this reading.pathResolver
- The Commons SCXML PathResolver
to use for this reading.customActions
- The list of Commons SCXML custom actions that will be available for this document.public SCXMLReader.Configuration(String factoryId, ClassLoader classLoader, XMLEventAllocator allocator, Map<String,Object> properties, XMLResolver resolver, XMLReporter reporter, String encoding, String systemId, boolean validate, PathResolver pathResolver, List<CustomAction> customActions, ClassLoader customActionClassLoader, boolean useContextClassLoaderForCustomActions)
null
(booleans should default
to false
).factoryId
- The factoryId
to use.classLoader
- The ClassLoader
to use for the XMLInputFactory
instance to create.allocator
- The XMLEventAllocator
for the XMLInputFactory
.properties
- The map of properties (keys are property name strings, values are object property values)
for the XMLInputFactory
.resolver
- The XMLResolver
for the XMLInputFactory
.reporter
- The XMLReporter
for the XMLInputFactory
.encoding
- The encoding
to use for the XMLStreamReader
systemId
- The systemId
to use for the XMLStreamReader
validate
- Whether to validate the input with the XML Schema for SCXML.pathResolver
- The Commons SCXML PathResolver
to use for this document.customActions
- The list of Commons SCXML custom actions that will be available for this document.customActionClassLoader
- The ClassLoader
to use for the CustomAction
instances to
create.useContextClassLoaderForCustomActions
- Whether to use the thread context ClassLoader
for the
CustomAction
instances to create.public boolean isSilent()
#silent}
public void setSilent(boolean silent)
silent
- #silent}
public boolean isStrict()
#strict}
public void setStrict(boolean strict)
strict
- #strict}
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.