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); }