Location: PHPKode > scripts > BoUML File Parser > UML_Parser_Configuration_BoUML.php
<?php

/**
 * Class that handles specifically BoUML tags
 * TODO: Include all uml artifact types with its regexp
 * @author jgonzalez
 *
 */
class UML_Parser_Configuration_BoUML extends UML_Parser_Configuration{
	public function getArtifactObjectByType($artifact_type, $source = "") {
		switch($artifact_type) {
			case "package":
				return new UML_Artifact($source, "/package_ref\s(\d+)\s\/\/\s(.+)/");
				break;
			case "component":
				return new UML_Artifact($source, "/component\s(\d+)\s\"(.+?)\"/");
				break;
			case "usecase":
				return new UML_Artifact($source, "/usecase\s(\d+)\s\"(.+?)\"/");
				break;
			default:
				$artifact = NULL;
		}
		return $artifact;
	}
}
Return current item: BoUML File Parser