Package net.sourceforge.yamlbeans

Examples of net.sourceforge.yamlbeans.YamlConfig


      prefixBuilder.append(' ');
    }
    final String indentPrefix = prefixBuilder.toString();

    StringWriter stringWriter = new StringWriter();
    YamlConfig yamlConfig = new YamlConfig();
    yamlConfig.writeConfig.setIndentSize(2);
    yamlConfig.writeConfig.setWriteRootTags(false);

    YamlWriter writer = new YamlWriter(stringWriter, yamlConfig);
    try {
View Full Code Here


   * @return A {@link String} with the requested yaml.
   * @throws YamlException If yaml formatting fails.
   */
  public String make(long endTimeUsec, boolean success) throws YamlException {
    StringWriter stringWriter = new StringWriter();
    YamlConfig yamlConfig = new YamlConfig();
    yamlConfig.writeConfig.setIndentSize(2);
    yamlConfig.writeConfig.setWriteRootTags(false);
    yamlConfig.writeConfig.setWriteRootElementTags(false);
    yamlConfig.writeConfig.setWriteDefaultValues(true);
    yamlConfig.setPropertyElementType(ClientDeploy.class, "requests", Request.class);
    YamlWriter yamlWriter = new YamlWriter(stringWriter, yamlConfig);
    ClientDeploy clientDeploy = new ClientDeploy(runtime, startTimeUsec, endTimeUsec, requests,
        success, sdkVersion);

    yamlWriter.write(clientDeploy);
View Full Code Here

TOP

Related Classes of net.sourceforge.yamlbeans.YamlConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.