1
2
3
4
5
6
7
8
9
10
11
12
13 package gov.nasa.pds.ltdt.label.statement;
14
15 /***
16 * Interface for creating statement objects that can be used to provide
17 * string representations of Statements in a PDS label.
18 *
19 * @author mcayanan
20 *
21 */
22 public interface PrettyStatement {
23
24 /***
25 * Return a string representation of a statement where there is no
26 * indentation and the '=' is placed 2 spaces after the identifier.
27 */
28 public String toString();
29
30 /***
31 * Return a string representation of a statement where the indentation
32 * is specified. The '=' is placed 2 spaces after the identifier.
33 *
34 * @param indentLength The number of spaces to indent the statement.
35 */
36 public String toString(short indentLength);
37
38 /***
39 * Return a string representation of a statement where the indentation
40 * and the position of the '=' are defined.
41 *
42 * @param indentLength The number of spaces to indent the statement.
43 * @param equalsPosition The position of the '='.
44 */
45 public String toString(short indentLength, int equalsPosition);
46 }