Class XMLConfiguration
java.lang.Object
org.castor.core.util.AbstractProperties
org.castor.xml.XMLProperties
org.castor.xml.XMLConfiguration
Deprecated.
Use XMLProperties instead.
Castor configuration of XML modul.
- Since:
- 1.1.3
- Version:
- $Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $
- Author:
- Ralf Joachim
-
Field Summary
Fields inherited from class XMLProperties
COLLECTION_HANDLERS_FOR_JAVA_11_OR_12, DEBUG, JAVA_NAMING, LENIENT_ID_VALIDATION, LENIENT_INTEGER_VALIDATION, LENIENT_INTROSPECTED_ELEMENT_STRICTNESS, LENIENT_SEQUENCE_ORDER, LOAD_PACKAGE_MAPPING, MARSHALLING_VALIDATION, MEMBER_NAME_CAPITALISATION_STRICT, NAMESPACE_PACKAGE_MAPPINGS, NAMESPACES, PARSER, PARSER_FEATURES, PARSER_FEATURES_DISABLED, PARSER_VALIDATION, PRIMITIVE_NODE_TYPE, PROXY_INTERFACES, REG_EXP_CLASS_NAME, SAVE_MAP_KEYS, SERIALIZER_FACTORY, STRICT_ELEMENTS, USE_INDENTATION, USE_INTROSPECTION, WRAP_COLLECTIONS_PROPERTY, XML_NAMING, XML_VERSIONModifier and TypeFieldDescriptionstatic final StringProperty specifying which collections handlers should be used for Java 1.1 and Java 1.2 run-times.static final StringProperty specifying whether to run in debug mode.static final StringProperty specifying the 'type' of the Java naming conventions to use.static final StringProperty specifying whether id/href validation should be lenient; defaults to false.static final StringProperty that allows to specify whether the validation for <xs:integer> should accept the old 'int/Integer' members as well; default to false.static final StringProperty specifying whether element strictness for introspected classes/elements should be lenient (aka allowed); defaults to true.static final StringProperty specifying whether sequence order validation should be lenient.static final StringProperty 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 final StringProperty specifying whether to use validation in the marshalling framework.static final StringProperty 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 final StringProperty specifying XML namespace to Java package mappings.static final StringProperty specifying whether to support XML namespaces by default.static final StringProperty specifying the class name of the SAX 1 XML parser to use.static final StringProperty specifying additional features for the XML parser.static final StringProperty specifying features to be disabled on the underlying SAX parser.static final StringProperty specifying whether to perform document validation by default.static final StringProperty specifying the type of XML node to use for primitive values, either 'element' or 'attribute'.static final StringProperty specifying whether or not to search for an proxy interface at marshalling.static final StringProperty specifying the regular expression validator to use.static final StringProperty specifying whether or not to save the "keys" of aorinvalid reference
Hashtableduring marshalling.invalid reference
Mapstatic final StringProperty specifying what factory to use for dealing with XML serializers.static final StringProperty specifying whether to apply strictness to elements when unmarshalling.static final StringProperty specifying whether XML documents (as generated at marshalling) should use indentation or not.static final StringProperty specifying if introspection should be used at class resolving.static final StringThe property name for enabling collection wrapping.static final StringProperty specifying the 'type' of the XML naming conventions to use.static final StringProperty that allows to specify the XML document version number to be used during marshalling; defaults to 1.0. -
Method Summary
Methods inherited from class XMLProperties
newInstance, newInstanceModifier and TypeMethodDescriptionstatic AbstractPropertiesFactory method for a default XML properties instance.static AbstractPropertiesnewInstance(ClassLoader app, ClassLoader domain) Factory method for a XML properties instance that uses the specified class loaders.Methods inherited from class AbstractProperties
get, getApplicationClassLoader, getBoolean, getBoolean, getClass, getClassArray, getDomainClassLoader, getInteger, getInteger, getObject, getObjectArray, getString, getString, getStringArray, loadDefaultProperties, loadUserProperties, put, removeModifier and TypeMethodDescriptionprotected ObjectSearches for the property with the specified key in this property map.final ClassLoaderGet classloader to be used for all classes of Castor and its required libraries.final BooleangetBoolean(String key) Searches for the property with the specified key in this property map.final booleangetBoolean(String key, boolean defaultValue) Searches for the property with the specified key in this property map.final ClassgetClass(String key, ClassLoader loader) Searches for the property with the specified key in this property map.final Class[]getClassArray(String key, ClassLoader loader) Searches for the property with the specified key in this property map.final ClassLoaderGet classloader to be used for all domain objects that are marshalled/unmarshalled or loaded from the database.final IntegergetInteger(String key) Searches for the property with the specified key in this property map.final intgetInteger(String key, int defaultValue) Searches for the property with the specified key in this property map.final ObjectSearches for the property with the specified key in this property map.final Object[]getObjectArray(String key, ClassLoader loader) Searches for the property with the specified key in this property map.final StringSearches for the property with the specified key in this property map.final StringSearches for the property with the specified key in this property map.final String[]getStringArray(String key) Searches for the property with the specified key in this property map.protected voidloadDefaultProperties(String path, String filename) Load module properties from default locations.protected voidloadUserProperties(String filename) Load common user properties from classpath root and current working directory.final ObjectPut given value associated with given key into the properties map of this properties.final ObjectRemove any value previously associated with the given key from this properties.