01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.core;
11:
12: import java.io.PrintWriter;
13:
14: /**
15: * Classes that implement this interface can participate in saving the model to
16: * the ASCII output stream using the provided writer.
17: *
18: * @since 2.0
19: */
20: public interface IWritable {
21: /**
22: * Writes the ASCII representation of the writable into the provider writer.
23: * The writable should use the provided indent to write the stream starting
24: * from the specified column number. Indent string should be written to the
25: * writer after every new line.
26: *
27: * @param indent
28: * a string that should be added after each new line to maintain
29: * desired horizontal alignment
30: * @param writer
31: * a writer to be used to write this object's textual
32: * representation
33: */
34: void write(String indent, PrintWriter writer);
35: }
|