public class XMLProperties extends AbstractProperties
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION_HANDLERS_FOR_JAVA_11_OR_12
Property specifying which collections handlers should be used for Java 1.1 and Java 1.2
run-times.
|
static String |
DEBUG
Property specifying whether to run in debug mode.
|
static String |
JAVA_NAMING
Property specifying the 'type' of the Java naming conventions to use.
|
static String |
LENIENT_ID_VALIDATION
Property specifying whether id/href validation should be lenient; defaults to false.
|
static String |
LENIENT_INTEGER_VALIDATION
Property that allows to specify whether the validation for <xs:integer> should accept the
old 'int/Integer' members as well; default to false.
|
static String |
LENIENT_INTROSPECTED_ELEMENT_STRICTNESS
Property specifying whether element strictness for introspected classes/elements should be
lenient (aka allowed); defaults to true.
|
static String |
LENIENT_SEQUENCE_ORDER
Property specifying whether sequence order validation should be lenient.
|
static String |
LOAD_PACKAGE_MAPPING
Property specifying whether the ClassDescriptorResolver should (automatically) search for and
consult with package mapping files (.castor.xml) to retrieve class descriptor information; on
by default.
|
static String |
MARSHALLING_VALIDATION
Property specifying whether to use validation in the marshalling framework.
|
static String |
MEMBER_NAME_CAPITALISATION_STRICT
Property that allows to override Castor's introspector conversion rules for member names; if
enabled, even member names such as 'XMLMember' will be camel-cased to 'xMLMember'; defaults to
false.
|
static String |
NAMESPACE_PACKAGE_MAPPINGS
Property specifying XML namespace to Java package mappings.
|
static String |
NAMESPACES
Property specifying whether to support XML namespaces by default.
|
static String |
PARSER
Property specifying the class name of the SAX 1 XML parser to use.
|
static String |
PARSER_FEATURES
Property specifying additional features for the XML parser.
|
static String |
PARSER_FEATURES_DISABLED
Property specifying features to be disabled on the underlying SAX parser.
|
static String |
PARSER_VALIDATION
Property specifying whether to perform document validation by default.
|
static String |
PRIMITIVE_NODE_TYPE
Property specifying the type of XML node to use for primitive values, either 'element' or
'attribute'.
|
static String |
PROXY_INTERFACES
Property specifying whether or not to search for an proxy interface at marshalling.
|
static String |
REG_EXP_CLASS_NAME
Property specifying the regular expression validator to use.
|
static String |
SAVE_MAP_KEYS
Property specifying whether or not to save the "keys" of a
Hashtable or Map
during marshalling. |
static String |
SERIALIZER_FACTORY
Property specifying what factory to use for dealing with XML serializers.
|
static String |
STRICT_ELEMENTS
Property specifying whether to apply strictness to elements when unmarshalling.
|
static String |
USE_INDENTATION
Property specifying whether XML documents (as generated at marshalling) should use indentation
or not.
|
static String |
USE_INTROSPECTION
Property specifying if introspection should be used at class resolving.
|
static String |
WRAP_COLLECTIONS_PROPERTY
The property name for enabling collection wrapping.
|
static String |
XML_NAMING
Property specifying the 'type' of the XML naming conventions to use.
|
static String |
XML_VERSION
Property that allows to specify the XML document version number to be used during marshalling;
defaults to 1.0.
|
| Constructor and Description |
|---|
XMLProperties(AbstractProperties parent)
Construct properties with given parent.
|
| Modifier and Type | Method and Description |
|---|---|
static AbstractProperties |
newInstance()
Factory method for a default XML properties instance.
|
static AbstractProperties |
newInstance(ClassLoader app,
ClassLoader domain)
Factory method for a XML properties instance that uses the specified class loaders.
|
get, getApplicationClassLoader, getBoolean, getBoolean, getClass, getClassArray, getDomainClassLoader, getInteger, getInteger, getObject, getObjectArray, getString, getString, getStringArray, loadDefaultProperties, loadUserProperties, put, removepublic static final String PRIMITIVE_NODE_TYPE
org.exolab.castor.xml.introspector.primitive.nodetype
public static final String PARSER
org.exolab.castor.parser
public static final String PARSER_VALIDATION
org.exolab.castor.SAXParser.validation
public static final String NAMESPACES
org.exolab.castor.SAXParser.namespaces
public static final String NAMESPACE_PACKAGE_MAPPINGS
org.exolab.castor.xml.nspackages
public static final String XML_NAMING
AbstractXMLNaming.
Possible values: - 'mixed' - 'lower' - A class name (which extends
AbstractXMLNaming).
org.exolab.castor.xml.naming
public static final String JAVA_NAMING
JavaNaming.
Possible values: - null - A class name (which extends JavaNaming).
org.castor.xml.java_naming
public static final String MARSHALLING_VALIDATION
org.exolab.castor.marshalling.validation
public static final String USE_INDENTATION
org.exolab.castor.indent
public static final String PARSER_FEATURES
org.exolab.castor.sax.features
public static final String PARSER_FEATURES_DISABLED
org.exolab.castor.sax.features - to - disable
public static final String REG_EXP_CLASS_NAME
org.exolab.castor.xml.validators.RegExpValidator
Possible values: - A class name.
org.exolab.castor.regexp
public static final String DEBUG
org.exolab.castor.debug
public static final String STRICT_ELEMENTS
SAXException to be thrown. If set to false, these 'unknown' elements are
ignored.
Possible values: - false - true (default)
org.exolab.castor.strictelements
public static final String SAVE_MAP_KEYS
Hashtable or Map
during marshalling. By default this is true.
Backwards compatibility switch (for 0.9.5.2 users and earlier)
Possible values: - false - true (default)
org.exolab.castor.xml.saveMapKeys
public static final String LOAD_PACKAGE_MAPPING
org.exolab.castor.xml.loadPackageMappings
public static final String SERIALIZER_FACTORY
org.exolab.castor.xml.serializer.factory
public static final String LENIENT_SEQUENCE_ORDER
org.exolab.castor.xml.lenient.sequence.order = falsesince 1.1
public static final String LENIENT_ID_VALIDATION
org.exolab.castor.xml.lenient.id.validation = falsesince 1.1
public static final String PROXY_INTERFACES
org.exolab.castor.xml.proxyInterfaces
public static final String LENIENT_INTROSPECTED_ELEMENT_STRICTNESS
org.exolab.castor.xml.lenient.introspected.element.strictness = true
public static final String COLLECTION_HANDLERS_FOR_JAVA_11_OR_12
org.exolab.castor.mapping.collections
public static final String USE_INTROSPECTION
org.castor.xml.class - resolver.use - introspection
public static final String WRAP_COLLECTIONS_PROPERTY
<foos>
<foo>foo1</foo>
<foo>foo2</foo>
</foos>
instead of the default:
<foos>foo1<foos>
<foos>foo2</foos>
Use this property with a value of true or false in the castor.properties file
org.exolab.castor.xml.introspector.wrapCollections=true -or-
org.exolab.castor.xml.introspector.wrapCollections=false
This property is false by default.public static final String LENIENT_INTEGER_VALIDATION
org.exolab.castor.xml.lenient.integer.validation = false
public static final String XML_VERSION
org.exolab.castor.xml.version = 1.0
public static final String MEMBER_NAME_CAPITALISATION_STRICT
org.exolab.castor.xml.member.naming.capitalisation.strict = false
public XMLProperties(AbstractProperties parent)
parent - Parent properties.public static AbstractProperties newInstance()
public static AbstractProperties newInstance(ClassLoader app, ClassLoader domain)
app - ClassLoader to be used for all classes of Castor and its required libraries.domain - ClassLoader to be used for all domain objects.Copyright © 2016. All rights reserved.