// Path: ask-app/src/main/java/com/androidstarterkit/constraints/SyntaxConstraints.java
// public class SyntaxConstraints {
//   public static final String IDENTIFIER_PACKAGE = "package";
//   public static final String IDENTIFIER_IMPORT = "import";
// 
//   public static final String REPLACE_STRING = "%%";
//   public static final String DEFAULT_INDENT = "  ";
//   public static final String NEWLINE = "\n";
// }


import com.androidstarterkit.constraints.SyntaxConstraints;
import java.util.ArrayList;
import java.util.List;
package com.androidstarterkit.util;




public class SyntaxUtils {
  public static String createStartElement(String elemetName) {
    return "<" + elemetName + ">";
  }

  public static String createEndElement(String elementName) {
    return "</" + elementName + ">";
  }

  public static boolean hasStartElement(String codeLine, String resourceTypeName) {
    return codeLine.contains("<" + resourceTypeName);
  }

  public static boolean hasEndElement(String codeLine, String resourceTypeName) {
    return codeLine.contains("</" + resourceTypeName) || codeLine.contains("/>");
  }

  public static List<String> appendIndentForPrefix(List<String> codelines, int indentCount) {
    List<String> indentCodelines = new ArrayList<>();

    for (String codeline : codelines) {
      indentCodelines.add(appendIndentForPrefix(codeline, indentCount));
    }

    return indentCodelines;
  }

  public static String appendIndentForPrefix(String codeline, int indentCount) {
    String indent = "";
    for (int i = 0; i < indentCount; i++) {
// Path: ask-app/src/main/java/com/androidstarterkit/constraints/SyntaxConstraints.java
// public class SyntaxConstraints {
//   public static final String IDENTIFIER_PACKAGE = "package";
//   public static final String IDENTIFIER_IMPORT = "import";
// 
//   public static final String REPLACE_STRING = "%%";
//   public static final String DEFAULT_INDENT = "  ";
//   public static final String NEWLINE = "\n";
// }


// Path: ask-app/src/main/java/com/androidstarterkit/util/SyntaxUtils.java
import com.androidstarterkit.constraints.SyntaxConstraints;
import java.util.ArrayList;
import java.util.List;

package com.androidstarterkit.util;




public class SyntaxUtils {
  public static String createStartElement(String elemetName) {
    return "<" + elemetName + ">";
  }

  public static String createEndElement(String elementName) {
    return "</" + elementName + ">";
  }

  public static boolean hasStartElement(String codeLine, String resourceTypeName) {
    return codeLine.contains("<" + resourceTypeName);
  }

  public static boolean hasEndElement(String codeLine, String resourceTypeName) {
    return codeLine.contains("</" + resourceTypeName) || codeLine.contains("/>");
  }

  public static List<String> appendIndentForPrefix(List<String> codelines, int indentCount) {
    List<String> indentCodelines = new ArrayList<>();

    for (String codeline : codelines) {
      indentCodelines.add(appendIndentForPrefix(codeline, indentCount));
    }

    return indentCodelines;
  }

  public static String appendIndentForPrefix(String codeline, int indentCount) {
    String indent = "";
    for (int i = 0; i < indentCount; i++) {
      indent += SyntaxConstraints.DEFAULT_INDENT;