1. // $Id: Source.java,v 1.2 2003/09/07 23:02:09 jsuttor Exp $
  2. /*
  3. * @(#)Source.java 1.14 04/07/26
  4. *
  5. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  6. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  7. */
  8. package javax.xml.transform;
  9. /**
  10. * An object that implements this interface contains the information
  11. * needed to act as source input (XML source or transformation instructions).
  12. */
  13. public interface Source {
  14. /**
  15. * Set the system identifier for this Source.
  16. *
  17. * <p>The system identifier is optional if the source does not
  18. * get its data from a URL, but it may still be useful to provide one.
  19. * The application can use a system identifier, for example, to resolve
  20. * relative URIs and to include in error messages and warnings.</p>
  21. *
  22. * @param systemId The system identifier as a URL string.
  23. */
  24. public void setSystemId(String systemId);
  25. /**
  26. * Get the system identifier that was set with setSystemId.
  27. *
  28. * @return The system identifier that was set with setSystemId, or null
  29. * if setSystemId was not called.
  30. */
  31. public String getSystemId();
  32. }