/** * Constructor for the <code>Persister</code> object. This is used * to create a serializer object that will use a platform filter * object using the overrides within the provided map. This means * that template variables will be replaced firstly with mappings * from within the provided map, followed by system properties. * * @param filter this is the map that contains the overrides */ public Persister(Map filter) { this(new PlatformFilter(filter)); }
/** * Constructor for the <code>Persister</code> object. This is used * to create a serializer object that will use a platform filter * object using the overrides within the provided map. This means * that template variables will be replaced firstly with mappings * from within the provided map, followed by system properties. * * @param filter this is the map that contains the overrides * @param format this is the format used to format the documents */ public Persister(Map filter, Format format) { this(new PlatformFilter(filter)); }
/** * Constructor for the <code>Persister</code> object. This is used * to create a serializer object that will use a platform filter * object using the overrides within the provided map. This means * that template variables will be replaced firstly with mappings * from within the provided map, followed by system properties. * <p> * This persister will use the provided <code>Strategy</code> to * intercept the XML elements in order to read and write persistent * data, such as the class name or version of the document. * * @param strategy this is the strategy used to resolve classes * @param data this is the map that contains the overrides */ public Persister(Strategy strategy, Map data) { this(strategy, new PlatformFilter(data)); }
/** * Constructor for the <code>Persister</code> object. This is used * to create a serializer object that will use the provided filter. * This persister will replace all variables encountered when * deserializing an object with mappings found in the filter. * <p> * This persister will use the provided <code>Strategy</code> to * intercept the XML elements in order to read and write persistent * data, such as the class name or version of the document. * * @param strategy this is the strategy used to resolve classes * @param data the filter data used to replace template variables * @param format this is used to format the generated XML document */ public Persister(Strategy strategy, Map data, Format format) { this(strategy, new PlatformFilter(data), format); }
/** * Constructor for the <code>Persister</code> object. This is used * to create a serializer object that will use the provided matcher * for customizable transformations. The <code>Matcher</code> will * enable the persister to determine the correct way to transform * the types that are not annotated and considered primitives. * <p> * This persister will use the provided <code>Strategy</code> to * intercept the XML elements in order to read and write persistent * data, such as the class name or version of the document. * * @param strategy this is the strategy used to resolve classes * @param matcher this is used to customize the transformations */ public Persister(Strategy strategy, Matcher matcher) { this(strategy, new PlatformFilter(), matcher); }
/** * Constructor for the <code>Persister</code> object. This is used * to create a serializer object that will use the provided matcher * for customizable transformations. The <code>Matcher</code> will * enable the persister to determine the correct way to transform * the types that are not annotated and considered primitives. * <p> * This persister will use the provided <code>Strategy</code> to * intercept the XML elements in order to read and write persistent * data, such as the class name or version of the document. * * @param strategy this is the strategy used to resolve classes * @param matcher this is used to customize the transformations * @param format this is used to format the generated XML document */ public Persister(Strategy strategy, Matcher matcher, Format format) { this(strategy, new PlatformFilter(), matcher, format); }
/** * Constructor for the <code>Support</code> object. This will * create a support object with a default matcher and default * platform filter. This ensures it contains enough information * to process a template and transform basic primitive types. */ public Support() { this(new PlatformFilter()); }