8
0

dataprocessor.jsdoc 851 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /**
  6. * @namespace engine.dataProcessor
  7. */
  8. /**
  9. * DataProcessor interface. It should be implemented by actual DataProcessors.
  10. * Each data processor implements a certain format of the data. E.g. `MarkdownDataProcessor` will convert the data
  11. * (Markdown string) to a DocumentFragment and back.
  12. *
  13. * @interface engine.dataProcessor.DataProcessor
  14. */
  15. /**
  16. * Converts a DocumentFragment to data.
  17. *
  18. * @method engine.dataProcessor.DataProcessor#toData
  19. * @param {DocumentFragment} fragment DocumentFragment to be processed.
  20. * @returns {*}
  21. */
  22. /**
  23. * Converts data to a DocumentFragment.
  24. *
  25. * @method engine.dataProcessor.DataProcessor#toDom
  26. * @param {*} data Data to be processed.
  27. * @returns {DocumentFragment}
  28. */