1. /*
  2. * Copyright (c) 2001 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE.
  10. * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11. */
  12. package com.sun.org.apache.xerces.internal.dom3.as;
  13. import org.w3c.dom.ls.LSSerializer;
  14. /**
  15. * @deprecated
  16. * A Abstract Schema serialization interface.
  17. * <p> DOMASWriters provides an API for serializing Abstract Schemas out in
  18. * the form of a source Abstract Schema. The Abstract Schema is written to
  19. * an output stream, the type of which depends on the specific language
  20. * bindings in use.
  21. * <p> DOMASWriter is a generic Abstract Schema serialization interface. It
  22. * can be applied to both an internal Abstract Schema and/or an external
  23. * Abstract Schema. DOMASWriter is applied to serialize a single Abstract
  24. * Schema. Serializing a document with an active Internal Abstract Schema
  25. * will serialize this internal Abstract Schema with the document as it is
  26. * part of the Document (see <code>LSSerializer</code>).
  27. * <p>See also the <a href='http://www.w3.org/TR/2001/WD-DOM-Level-3-ASLS-20011025'>Document Object Model (DOM) Level 3 Abstract Schemas and Load
  28. and Save Specification</a>.
  29. */
  30. public interface DOMASWriter extends LSSerializer {
  31. /**
  32. * Write out the specified Abstract Schema to the specified destination.
  33. * Does it write a DTD or an XML Schema (or something else)? Is it
  34. * possible to use this method to convert a DTD to an XML Schema?
  35. * @param destination The destination for the data to be written.
  36. * @param model The Abstract Schema to serialize.
  37. * @exception DOMSystemException
  38. * This exception will be raised in response to any sort of IO or system
  39. * error that occurs while writing to the destination. It may wrap an
  40. * underlying system exception.
  41. */
  42. public void writeASModel(java.io.OutputStream destination,
  43. ASModel model)
  44. throws Exception;
  45. }