1 /*******************************************************************************
\r
2 * Copyright (c) 2010 Association for Decentralized Information Management in
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.databoard.parser;
15 * This class describes the representation format of string encoding.
17 * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
19 public class PrintFormat {
21 public static final PrintFormat SINGLE_LINE;
22 public static final PrintFormat MULTI_LINE;
24 /** Indent sequence (Optional) */
25 public String indent = null;
26 /** New Line sequence (Optional) */
27 public String newLine = null;
29 public char openArray = '[';
30 public char closeArray = ']';
31 public String arraySeparator = ",";
33 public char openUnion = '(';
34 public char closeUnion = ')';
36 public char openTuple = '(';
37 public char closeTuple = ')';
39 public char openRecord = '{';
40 public char closeRecord = '}';
42 public char openString = '\"';
43 public char closeString = '\"';
45 public String openLongString = "\"\"\"";
46 public String closeLongString = "\"\"\"";
48 public String True = "true";
49 public String False = "false";
50 public String Null = "null";
53 PrintFormat f = new PrintFormat();
61 f = new PrintFormat();