package org.arachb.owlbuilder.lib;

import org.arachb.arachadmin.TaxonBean;
import org.arachb.owlbuilder.Owlbuilder;
import org.semanticweb.owlapi.model.OWLObject;

public class Taxon implements GeneratingEntity{

	private final TaxonBean bean;

	public Taxon(TaxonBean b){
		bean = b;
	}


	@Override
	public OWLObject generateOWL(Owlbuilder b) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}




	public String getParentSourceId(){
		return bean.getParentSourceId();
	}


	public String getName() {
		return bean.getName();
	}

}

@@ -29,16 +29,65 @@
 r.lib;%0A%0A
+import java.util.HashMap;%0Aimport java.util.Map;%0A%0A
 import o
@@ -159,16 +159,155 @@
 uilder;%0A
+import org.semanticweb.owlapi.model.IRI;%0Aimport org.semanticweb.owlapi.model.OWLClass;%0Aimport org.semanticweb.owlapi.model.OWLDataFactory;%0A
 import o
@@ -376,16 +376,21 @@
 lements 
+Named
 Generati
@@ -397,16 +397,32 @@
 ngEntity
+,TaxonomicEntity
 %7B%0A%0A%09priv
@@ -492,17 +492,16 @@
  b;%0A%09%7D%0A%0A
-%0A
 %09@Overri
@@ -515,99 +515,26 @@
 lic 
-OWLObject generateOWL(Owlbuilder b) throws Exception %7B%0A%09%09// TODO Auto-generated method stub
+boolean isTaxon()%7B
 %0A%09%09r
@@ -543,21 +543,19 @@
 urn 
-null
+true
 ;%0A%09%7D%0A%0A%0A
-%0A%0A
 %09pub
@@ -682,10 +682,627 @@
 ();%0A%09%7D%0A%0A
+%09final private static Map%3CString,OWLObject%3E defaultElementMap = new HashMap%3CString,OWLObject%3E();%0A%0A%09@Override%0A%09public OWLObject generateOWL(Owlbuilder b, Map%3CString, OWLObject%3E elements) throws Exception %7B%0A%09%09OWLDataFactory factory = b.getDataFactory();%0A%09%09IRI classIRI = IRI.create(bean.getIRIString());%0A%09%09OWLClass newClass = factory.getOWLClass(classIRI);%0A%09%09elements.put(bean.getIRIString(), newClass);%0A%09%09return newClass;%0A%09%7D%0A%0A%09@Override%0A%09public OWLObject generateOWL(Owlbuilder builder) throws Exception %7B%0A%09%09OWLObject result = generateOWL(builder, defaultElementMap);%0A%09%09defaultElementMap.clear();%0A%09%09return result;%0A%09%7D%0A%0A
 %7D%0A

implement generator methods