/** * Set the default stream filter type on the supplied Smooks instance. * @param smooks The Smooks instance. * @param filterType The filter type. */ public static void setFilterType(Smooks smooks, org.milyn.StreamFilterType filterType) { ParameterAccessor.setParameter(STREAM_FILTER_TYPE, filterType.toString(), smooks); }
/** * Set the default stream filter type on the supplied Smooks instance. * @param smooks The Smooks instance. * @param filterType The filter type. */ public static void setFilterType(Smooks smooks, org.milyn.StreamFilterType filterType) { ParameterAccessor.setParameter(STREAM_FILTER_TYPE, filterType.toString(), smooks); }
/** * Set the default stream filter type on the supplied Smooks instance. * @param smooks The Smooks instance. * @param filterType The filter type. * @deprecated Use {@link #setFilterType(org.milyn.Smooks, org.milyn.StreamFilterType)}. */ public static void setFilterType(Smooks smooks, StreamFilterType filterType) { ParameterAccessor.setParameter(STREAM_FILTER_TYPE, filterType.toString(), smooks); }
/** * Set the default stream filter type on the supplied Smooks instance. * @param smooks The Smooks instance. * @param filterType The filter type. */ public static void setFilterType(Smooks smooks, org.milyn.StreamFilterType filterType) { ParameterAccessor.setParameter(STREAM_FILTER_TYPE, filterType.toString(), smooks); }
/** * Set the default stream filter type on the supplied Smooks instance. * @param smooks The Smooks instance. * @param filterType The filter type. * @deprecated Use {@link #setFilterType(org.milyn.Smooks, org.milyn.StreamFilterType)}. */ public static void setFilterType(Smooks smooks, StreamFilterType filterType) { ParameterAccessor.setParameter(STREAM_FILTER_TYPE, filterType.toString(), smooks); }
/** * Set the default stream filter type on the supplied Smooks instance. * @param smooks The Smooks instance. * @param filterType The filter type. * @deprecated Use {@link #setFilterType(org.milyn.Smooks, org.milyn.StreamFilterType)}. */ public static void setFilterType(Smooks smooks, StreamFilterType filterType) { ParameterAccessor.setParameter(STREAM_FILTER_TYPE, filterType.toString(), smooks); }
/** * Set the default stream filter type on the supplied Smooks instance. * @param smooks The Smooks instance. * @param filterType The filter type. */ public static void setFilterType(Smooks smooks, org.milyn.StreamFilterType filterType) { ParameterAccessor.setParameter(STREAM_FILTER_TYPE, filterType.toString(), smooks); }
/** * Set the default stream filter type on the supplied Smooks instance. * @param smooks The Smooks instance. * @param filterType The filter type. * @deprecated Use {@link #setFilterType(org.milyn.Smooks, org.milyn.StreamFilterType)}. */ public static void setFilterType(Smooks smooks, StreamFilterType filterType) { ParameterAccessor.setParameter(STREAM_FILTER_TYPE, filterType.toString(), smooks); }
protected void applySettings(Smooks smooks) { // Remove the old params... ParameterAccessor.removeParameter(Filter.STREAM_FILTER_TYPE, smooks); ParameterAccessor.removeParameter(Filter.ENTITIES_REWRITE, smooks); ParameterAccessor.removeParameter(Filter.DEFAULT_SERIALIZATION_ON, smooks); ParameterAccessor.removeParameter(Filter.TERMINATE_ON_VISITOR_EXCEPTION, smooks); ParameterAccessor.removeParameter(Filter.MAINTAIN_ELEMENT_STACK, smooks); ParameterAccessor.removeParameter(Filter.CLOSE_SOURCE, smooks); ParameterAccessor.removeParameter(Filter.CLOSE_RESULT, smooks); ParameterAccessor.removeParameter(Filter.READER_POOL_SIZE, smooks); // Set the params... ParameterAccessor.setParameter(Filter.STREAM_FILTER_TYPE, filterType.toString(), smooks); ParameterAccessor.setParameter(Filter.ENTITIES_REWRITE, Boolean.toString(rewriteEntities), smooks); ParameterAccessor.setParameter(Filter.DEFAULT_SERIALIZATION_ON, Boolean.toString(defaultSerializationOn), smooks); ParameterAccessor.setParameter(Filter.TERMINATE_ON_VISITOR_EXCEPTION, Boolean.toString(terminateOnException), smooks); ParameterAccessor.setParameter(Filter.MAINTAIN_ELEMENT_STACK, Boolean.toString(maintainElementStack), smooks); ParameterAccessor.setParameter(Filter.CLOSE_SOURCE, Boolean.toString(closeSource), smooks); ParameterAccessor.setParameter(Filter.CLOSE_RESULT, Boolean.toString(closeResult), smooks); ParameterAccessor.setParameter(Filter.READER_POOL_SIZE, Integer.toString(readerPoolSize), smooks); }
protected void applySettings(Smooks smooks) { // Remove the old params... ParameterAccessor.removeParameter(Filter.STREAM_FILTER_TYPE, smooks); ParameterAccessor.removeParameter(Filter.ENTITIES_REWRITE, smooks); ParameterAccessor.removeParameter(Filter.DEFAULT_SERIALIZATION_ON, smooks); ParameterAccessor.removeParameter(Filter.TERMINATE_ON_VISITOR_EXCEPTION, smooks); ParameterAccessor.removeParameter(Filter.MAINTAIN_ELEMENT_STACK, smooks); ParameterAccessor.removeParameter(Filter.CLOSE_SOURCE, smooks); ParameterAccessor.removeParameter(Filter.CLOSE_RESULT, smooks); ParameterAccessor.removeParameter(Filter.READER_POOL_SIZE, smooks); // Set the params... ParameterAccessor.setParameter(Filter.STREAM_FILTER_TYPE, filterType.toString(), smooks); ParameterAccessor.setParameter(Filter.ENTITIES_REWRITE, Boolean.toString(rewriteEntities), smooks); ParameterAccessor.setParameter(Filter.DEFAULT_SERIALIZATION_ON, Boolean.toString(defaultSerializationOn), smooks); ParameterAccessor.setParameter(Filter.TERMINATE_ON_VISITOR_EXCEPTION, Boolean.toString(terminateOnException), smooks); ParameterAccessor.setParameter(Filter.MAINTAIN_ELEMENT_STACK, Boolean.toString(maintainElementStack), smooks); ParameterAccessor.setParameter(Filter.CLOSE_SOURCE, Boolean.toString(closeSource), smooks); ParameterAccessor.setParameter(Filter.CLOSE_RESULT, Boolean.toString(closeResult), smooks); ParameterAccessor.setParameter(Filter.READER_POOL_SIZE, Integer.toString(readerPoolSize), smooks); }
protected void applySettings(Smooks smooks) { // Remove the old params... ParameterAccessor.removeParameter(Filter.STREAM_FILTER_TYPE, smooks); ParameterAccessor.removeParameter(Filter.ENTITIES_REWRITE, smooks); ParameterAccessor.removeParameter(Filter.DEFAULT_SERIALIZATION_ON, smooks); ParameterAccessor.removeParameter(Filter.TERMINATE_ON_VISITOR_EXCEPTION, smooks); ParameterAccessor.removeParameter(Filter.MAINTAIN_ELEMENT_STACK, smooks); ParameterAccessor.removeParameter(Filter.CLOSE_SOURCE, smooks); ParameterAccessor.removeParameter(Filter.CLOSE_RESULT, smooks); ParameterAccessor.removeParameter(Filter.READER_POOL_SIZE, smooks); // Set the params... ParameterAccessor.setParameter(Filter.STREAM_FILTER_TYPE, filterType.toString(), smooks); ParameterAccessor.setParameter(Filter.ENTITIES_REWRITE, Boolean.toString(rewriteEntities), smooks); ParameterAccessor.setParameter(Filter.DEFAULT_SERIALIZATION_ON, Boolean.toString(defaultSerializationOn), smooks); ParameterAccessor.setParameter(Filter.TERMINATE_ON_VISITOR_EXCEPTION, Boolean.toString(terminateOnException), smooks); ParameterAccessor.setParameter(Filter.MAINTAIN_ELEMENT_STACK, Boolean.toString(maintainElementStack), smooks); ParameterAccessor.setParameter(Filter.CLOSE_SOURCE, Boolean.toString(closeSource), smooks); ParameterAccessor.setParameter(Filter.CLOSE_RESULT, Boolean.toString(closeResult), smooks); ParameterAccessor.setParameter(Filter.READER_POOL_SIZE, Integer.toString(readerPoolSize), smooks); }
protected void applySettings(Smooks smooks) { // Remove the old params... ParameterAccessor.removeParameter(Filter.STREAM_FILTER_TYPE, smooks); ParameterAccessor.removeParameter(Filter.ENTITIES_REWRITE, smooks); ParameterAccessor.removeParameter(Filter.DEFAULT_SERIALIZATION_ON, smooks); ParameterAccessor.removeParameter(Filter.TERMINATE_ON_VISITOR_EXCEPTION, smooks); ParameterAccessor.removeParameter(Filter.MAINTAIN_ELEMENT_STACK, smooks); ParameterAccessor.removeParameter(Filter.CLOSE_SOURCE, smooks); ParameterAccessor.removeParameter(Filter.CLOSE_RESULT, smooks); ParameterAccessor.removeParameter(Filter.READER_POOL_SIZE, smooks); // Set the params... ParameterAccessor.setParameter(Filter.STREAM_FILTER_TYPE, filterType.toString(), smooks); ParameterAccessor.setParameter(Filter.ENTITIES_REWRITE, Boolean.toString(rewriteEntities), smooks); ParameterAccessor.setParameter(Filter.DEFAULT_SERIALIZATION_ON, Boolean.toString(defaultSerializationOn), smooks); ParameterAccessor.setParameter(Filter.TERMINATE_ON_VISITOR_EXCEPTION, Boolean.toString(terminateOnException), smooks); ParameterAccessor.setParameter(Filter.MAINTAIN_ELEMENT_STACK, Boolean.toString(maintainElementStack), smooks); ParameterAccessor.setParameter(Filter.CLOSE_SOURCE, Boolean.toString(closeSource), smooks); ParameterAccessor.setParameter(Filter.CLOSE_RESULT, Boolean.toString(closeResult), smooks); ParameterAccessor.setParameter(Filter.READER_POOL_SIZE, Integer.toString(readerPoolSize), smooks); }
private void configure() { Smooks smooks = descriptor.getSmooks(); smooks.addVisitor(new NamespaceReaper()); //descriptor.getSmooks().addVisitor(new UnknownElementDataReaper(), "*"); smooks.setFilterSettings(FilterSettings.newDOMSettings()); ParameterAccessor.setParameter(BeanInstancePopulator.NOTIFY_POPULATE, "true", smooks); // Create the execution context so as to force resolution of the config... smooks.createExecutionContext(); }
private void configure() { Smooks smooks = descriptor.getSmooks(); smooks.addVisitor(new NamespaceReaper()); //descriptor.getSmooks().addVisitor(new UnknownElementDataReaper(), "*"); smooks.setFilterSettings(FilterSettings.newDOMSettings()); ParameterAccessor.setParameter(BeanInstancePopulator.NOTIFY_POPULATE, "true", smooks); // Create the execution context so as to force resolution of the config... smooks.createExecutionContext(); }
private void configure() { Smooks smooks = descriptor.getSmooks(); smooks.addVisitor(new NamespaceReaper()); //descriptor.getSmooks().addVisitor(new UnknownElementDataReaper(), "*"); smooks.setFilterSettings(FilterSettings.newDOMSettings()); ParameterAccessor.setParameter(BeanInstancePopulator.NOTIFY_POPULATE, "true", smooks); // Create the execution context so as to force resolution of the config... smooks.createExecutionContext(); }