Class BackwardCompatibilityContext
java.lang.Object
org.castor.xml.AbstractInternalContext
org.castor.xml.BackwardCompatibilityContext
- All Implemented Interfaces:
InternalContext, PropertyChangeProvider
public class BackwardCompatibilityContext
extends AbstractInternalContext
implements InternalContext
As the name already expresses: this class is there for backward compatibility
and should be removed from Castor with a future release.
Normally the internal context is created by XMLContext exclusivly and then
handed down the call chain. This very class is used in all cases, which fail
to be on a call chain started with
XMLContext.
Ideally, all usage of this class should disappear and be replaced with proper
usage of XMLContext.- Version:
- $Id$
- Author:
- Joachim Grueneis, jgrueneis_at_gmail_dot_com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes InternalContext with default values. -
Method Summary
Methods inherited from class AbstractInternalContext
addClass, addClasses, addMapping, addPackage, addPackages, addPropertyChangeListener, addPropertyChangeListener, getBooleanProperty, getClassLoader, getIntrospector, getJavaNaming, getLenientIdValidation, getLenientSequenceOrder, getLoadPackageMapping, getMappingLoader, getOutputFormat, getParser, getParser, getPrimitiveNodeType, getProperty, getRegExpEvaluator, getResolverStrategy, getSerializer, getSerializer, getSerializer, getSerializerFactory, getStringProperty, getUseIntrospector, getXMLClassDescriptorResolver, getXMLNaming, getXMLNaming, getXMLReader, getXMLReader, marshallingValidation, removePropertyChangeListener, removePropertyChangeListener, setClassLoader, setIntrospector, setJavaNaming, setJavaNaming, setLoadPackageMapping, setMappingLoader, setProperty, setProperty, setResolver, setResolverStrategy, setUseIntrospector, setXMLClassDescriptorResolver, setXMLNaming, setXMLNaming, strictElementsModifier and TypeMethodDescriptionvoidLoads the class descriptor for the class instance specified.voidaddClasses(Class[] clazzes) Loads the class descriptor for the class instance specified.voidaddMapping(Mapping mapping) Instructs Castor to load class descriptors from the mapping given.voidaddPackage(String packageName) Loads class descriptors from the package specified.voidaddPackages(String[] packageNames) Loads class descriptors from the packages specified.voidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) getBooleanProperty(String propertyName) Providing access to Boolean properties of the configuration.To get the ClassLoader to use for loading resources.To get the Introspector assigned to this XMLContext.TheJavaNaminginstance to be used.booleanGet lenient id validation flag.booleanGet lenient sequence order flag.Get load package mapping flag.To get theMappingLoaderspecified to be used in this Castor session.Returns the default OutputFormat for use with a Serializer.Return an XML document parser implementing the feature list specified in the configuration file.Returns an XML document parser implementing the requested set of features.Returns the NodeType to use for Java primitives.getProperty(String propertyName) To get the value of a specific property.Returns a new instance of the specified Regular Expression Evaluator, or null if no validator was specified.To get the XMLClassDescriptor resolver strategy to be used when resolving classes into class descriptors.Returns a default serializer for producing an XML document.getSerializer(OutputStream output) Returns a default serializer for producing an XML document to the designated output stream using the default serialization format.getSerializer(Writer output) Returns a default serializer for producing an XML document to the designated output stream using the default serialization format.protected XMLSerializerFactorygetSerializerFactory(String serializerFactoryName) Returns the currently configured XMLSerializerFactory instance.getStringProperty(String propertyName) Providing access to String properties of the configuration.To get use-introspection flag.To get the XMLClassdescriptorResolver instance hold in the context.Returns the naming conventions to use for the XML framework.getXMLNaming(ClassLoader classLoader) Deprecated.Makes no sence!Returns an XML document parser implementing the requested set of features.getXMLReader(String features) Returns an XML document parser implementing the requested set of features.booleanTo get marshalling-validation flag.voidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) voidsetClassLoader(ClassLoader classLoader) To set the class loader to be used in all further marshalling, unmarshalling and other actions.voidsetIntrospector(Introspector introspector) To specify whichIntrospector?is to be used.voidsetJavaNaming(String javaNamingProperty) voidsetJavaNaming(JavaNaming javaNaming) To set theJavaNaming?property.voidsetLoadPackageMapping(Boolean loadPackageMapping) To set the load package mapping flag.voidsetMappingLoader(MappingLoader mappingLoader) To set theMappingLoaderto be used in this Castor session.voidsetProperty(String propertyName, boolean value) To set any boolean property.voidsetProperty(String propertyName, Object value) To set properties for marshalling and unmarshalling behavior.voidsetResolver(XMLClassDescriptorResolver xmlClassDescriptorResolver) Sets an application-specificXMLClassDescriptorResolverinstance.voidsetResolverStrategy(ResolverStrategy resolverStrategy) To set the XMLClassDescriptor resolver strategy to be used.voidsetUseIntrospector(Boolean useIntrospector) To set use-introspection flag.voidsetXMLClassDescriptorResolver(XMLClassDescriptorResolver xmlClassDescriptorResolver) To set theXMLClassDescriptorResolverto be used.voidsetXMLNaming(String xmlNamingProperty) This XMLNaming setter is meant to be used when working in property style instead of setting an XMLNaming implementation.voidsetXMLNaming(XMLNaming xmlNaming) To set theXMLNamingproperty.booleanTo get strict-element flag.
-
Constructor Details
-
BackwardCompatibilityContext
public BackwardCompatibilityContext()Initializes InternalContext with default values.
-