// Path: src/ifcjni2/src/org/ifcopenshell/util/Utils.java
// public final class Utils {
// 
// 	public static String floatArrayToString(String tag, float[] arr) {
// 		StringBuilder builder = new StringBuilder();
// 		if (tag != null) {
// 			builder.append("\"" + tag + "\"" + ":");
// 		}
// 		builder.append("[");
// 		for (int i = 0, len = arr.length; i < len - 1; i++)
// 			builder.append(arr[i] + ",");
// 		if (arr.length > 0)
// 			builder.append(arr[arr.length - 1]);
// 		builder.append("]");
// 		return builder.toString();
// 	}
// 
// 	public static String intArrayToString(String tag, int[] arr) {
// 		StringBuilder builder = new StringBuilder("\"");
// 		builder.append(tag + "\"" + ":[");
// 		for (int i = 0, len = arr.length; i < len - 1; i++)
// 			builder.append(arr[i] + ",");
// 		builder.append(arr[arr.length - 1] + "]");
// 		return builder.toString();
// 	}
// 
// }


import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringEscapeUtils;
import org.ifcopenshell.util.Utils;
	}

	public String getName() {
		return name;
	}

	public List<IfcObject> getChildren() {
		return children;
	}

	protected void matrixTo4_4() {
		float mat[] = { matrix[0], matrix[1], matrix[2], 0, matrix[3],
				matrix[4], matrix[5], 0, matrix[6], matrix[7], matrix[8], 0,
				matrix[9], matrix[10], matrix[11], 1 };
		matrix = mat;
	}

	public void addChild(IfcObject object) {
		children.add(object);
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("\"id\":").append("\"").append(id).append("\",");
		builder.append("\"pid\":").append("\"").append(parent_id).append("\",");
		builder.append("\"ty\":").append("\"").append(type).append("\",");
		builder.append("\"guid\":").append("\"").append(StringEscapeUtils.escapeJava(guid)).append("\",");
		builder.append("\"nm\":").append("\"").append(StringEscapeUtils.escapeJava(name)).append("\",");
		builder.append("\"mat\":").append(
// Path: src/ifcjni2/src/org/ifcopenshell/util/Utils.java
// public final class Utils {
// 
// 	public static String floatArrayToString(String tag, float[] arr) {
// 		StringBuilder builder = new StringBuilder();
// 		if (tag != null) {
// 			builder.append("\"" + tag + "\"" + ":");
// 		}
// 		builder.append("[");
// 		for (int i = 0, len = arr.length; i < len - 1; i++)
// 			builder.append(arr[i] + ",");
// 		if (arr.length > 0)
// 			builder.append(arr[arr.length - 1]);
// 		builder.append("]");
// 		return builder.toString();
// 	}
// 
// 	public static String intArrayToString(String tag, int[] arr) {
// 		StringBuilder builder = new StringBuilder("\"");
// 		builder.append(tag + "\"" + ":[");
// 		for (int i = 0, len = arr.length; i < len - 1; i++)
// 			builder.append(arr[i] + ",");
// 		builder.append(arr[arr.length - 1] + "]");
// 		return builder.toString();
// 	}
// 
// }


// Path: src/ifcjni2/src/org/ifcopenshell/model/IfcObject.java
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringEscapeUtils;
import org.ifcopenshell.util.Utils;

	}

	public String getName() {
		return name;
	}

	public List<IfcObject> getChildren() {
		return children;
	}

	protected void matrixTo4_4() {
		float mat[] = { matrix[0], matrix[1], matrix[2], 0, matrix[3],
				matrix[4], matrix[5], 0, matrix[6], matrix[7], matrix[8], 0,
				matrix[9], matrix[10], matrix[11], 1 };
		matrix = mat;
	}

	public void addChild(IfcObject object) {
		children.add(object);
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("\"id\":").append("\"").append(id).append("\",");
		builder.append("\"pid\":").append("\"").append(parent_id).append("\",");
		builder.append("\"ty\":").append("\"").append(type).append("\",");
		builder.append("\"guid\":").append("\"").append(StringEscapeUtils.escapeJava(guid)).append("\",");
		builder.append("\"nm\":").append("\"").append(StringEscapeUtils.escapeJava(name)).append("\",");
		builder.append("\"mat\":").append(
				Utils.floatArrayToString(null, matrix));