// Path: reqifcompiler/src/main/java/de/kay_muench/reqif10/reqifcompiler/IdentifierManager.java
// public final class IdentifierManager {
// 	private static boolean predictabilityEnabled = false;
// 	private static long predictableId = 1L;
// 
// 	public static void enablePredictableId() {
// 		predictabilityEnabled = true;
// 	}
// 
// 	public static String generateIdentifier() {
// 		if (predictabilityEnabled) {
// 			predictableId += 1L;
// 			return "" + predictableId;
// 		}
// 		return "requie-tool-" + UUID.randomUUID().toString();
// 	}
// }
// 
// Path: reqifcompiler/src/main/java/de/kay_muench/reqif10/reqifcompiler/types/simple/Headline.java
// public class Headline {
// 	private DatatypeDefinitionString def;
// 
// 	Headline() {
// 		def = ReqIF10Factory.eINSTANCE.createDatatypeDefinitionString();
// 		def.setIdentifier(IdentifierManager.generateIdentifier());
// 		def.setLongName("T_Headline");
// 	}
// 
// 	public DatatypeDefinitionString getDef() {
// 		return this.def;
// 	}
// 
// }


import javax.xml.datatype.DatatypeConfigurationException;
import org.eclipse.rmf.reqif10.ReqIF10Factory;
import org.eclipse.rmf.reqif10.SpecObjectType;
import de.kay_muench.reqif10.reqifcompiler.IdentifierManager;
import de.kay_muench.reqif10.reqifcompiler.types.simple.Headline;
/**
 * Copyright (c) 2014 Kay Erik Münch.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.spdx.org/licenses/EPL-1.0
 * 
 * Contributors:
 *     Kay Erik Münch - initial API and implementation
 * 
 */
package de.kay_muench.reqif10.reqifcompiler.types.complex;




public class HeadlineType {
	private SpecObjectType def;
	private IdentifierAttribute id;

	HeadlineType(Headline typeIdDesc)
			throws DatatypeConfigurationException {
		id = new IdentifierAttribute(typeIdDesc);

		def = ReqIF10Factory.eINSTANCE.createSpecObjectType();
// Path: reqifcompiler/src/main/java/de/kay_muench/reqif10/reqifcompiler/IdentifierManager.java
// public final class IdentifierManager {
// 	private static boolean predictabilityEnabled = false;
// 	private static long predictableId = 1L;
// 
// 	public static void enablePredictableId() {
// 		predictabilityEnabled = true;
// 	}
// 
// 	public static String generateIdentifier() {
// 		if (predictabilityEnabled) {
// 			predictableId += 1L;
// 			return "" + predictableId;
// 		}
// 		return "requie-tool-" + UUID.randomUUID().toString();
// 	}
// }
// 
// Path: reqifcompiler/src/main/java/de/kay_muench/reqif10/reqifcompiler/types/simple/Headline.java
// public class Headline {
// 	private DatatypeDefinitionString def;
// 
// 	Headline() {
// 		def = ReqIF10Factory.eINSTANCE.createDatatypeDefinitionString();
// 		def.setIdentifier(IdentifierManager.generateIdentifier());
// 		def.setLongName("T_Headline");
// 	}
// 
// 	public DatatypeDefinitionString getDef() {
// 		return this.def;
// 	}
// 
// }


// Path: reqifcompiler/src/main/java/de/kay_muench/reqif10/reqifcompiler/types/complex/HeadlineType.java
import javax.xml.datatype.DatatypeConfigurationException;
import org.eclipse.rmf.reqif10.ReqIF10Factory;
import org.eclipse.rmf.reqif10.SpecObjectType;
import de.kay_muench.reqif10.reqifcompiler.IdentifierManager;
import de.kay_muench.reqif10.reqifcompiler.types.simple.Headline;

/**
 * Copyright (c) 2014 Kay Erik Münch.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.spdx.org/licenses/EPL-1.0
 * 
 * Contributors:
 *     Kay Erik Münch - initial API and implementation
 * 
 */
package de.kay_muench.reqif10.reqifcompiler.types.complex;




public class HeadlineType {
	private SpecObjectType def;
	private IdentifierAttribute id;

	HeadlineType(Headline typeIdDesc)
			throws DatatypeConfigurationException {
		id = new IdentifierAttribute(typeIdDesc);

		def = ReqIF10Factory.eINSTANCE.createSpecObjectType();
		def.setIdentifier(IdentifierManager.generateIdentifier());