2 * Copyright (c) 2007 Derek Wischusen
4 * Permission is hereby granted, free of charge, to any person obtaining a copy of
5 * this software and associated documentation files (the "Software"), to deal in
6 * the Software without restriction, including without limitation the rights to
7 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8 * of the Software, and to permit persons to whom the Software is furnished to do
9 * so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in all
12 * copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 public interface YAMLConfig {
27 function useSingle(useSingle:Boolean):YAMLConfig;
28 function useDouble(useDouble:Boolean):YAMLConfig;
29 function getUseSingle():Boolean;
30 function getUseDouble():Boolean;
31 function version(version:String):YAMLConfig;
32 function explicitStart(expStart:Boolean):YAMLConfig;
33 function explicitEnd(expEnd:Boolean):YAMLConfig;
34 function anchorFormat(format:String):YAMLConfig;
35 function getAnchorFormat():String;
36 function getExplicitStart() : Boolean;
37 function useVersion(useVersion:Boolean):YAMLConfig;
38 function indent(indent:int):YAMLConfig;
39 function getExplicitEnd() : Boolean;
40 function getUseVersion() : Boolean;
41 function getVersion() : String;
42 function getUseHeader():Boolean
43 function explicitTypes(expTypes:Boolean = false):YAMLConfig;
44 function getExplicitTypes():Boolean;
45 function canonical(canonical:Boolean):YAMLConfig;
46 function getCanonical():Boolean;
47 function bestWidth(bestWidth:int):YAMLConfig;
48 function getBestWidth():int;
49 function useBlock(useBlock:Boolean):YAMLConfig;
50 function useFlow(useFlow:Boolean):YAMLConfig;
51 function usePlain(usePlain:Boolean):YAMLConfig;
52 function useHeader(useHeader:Boolean):YAMLConfig;
53 function getIndent():int