org.umlg.runtime.adaptor.UmlgSchemaMapImpl Maven / Gradle / Ivy
package org.umlg.runtime.adaptor;
import java.util.HashMap;
import java.util.Map;
import org.umlg.associationclass.Company;
import org.umlg.associationclass.Friendship;
import org.umlg.associationclass.Job;
import org.umlg.associationclass.Person;
import org.umlg.enumeration.TestEnumeration;
import org.umlg.oclassociationrole.Many;
import org.umlg.oclassociationrole.One;
import org.umlg.qualifier.A;
import org.umlg.qualifier.B;
import org.umlg.qualifier.Bank;
import org.umlg.qualifier.C;
import org.umlg.qualifier.Customer;
import org.umlg.qualifier.D;
import org.umlg.qualifier.Depth1;
import org.umlg.qualifier.Depth2;
import org.umlg.qualifier.Employee;
import org.umlg.runtime.domain.UmlgNode;
import org.umlg.testocl.OclTest1;
import org.umlg.testocl.OclTest2;
import org.umlg.testocl.OclTestCollection;
import org.umlg.testocl.OclTestCollection2;
public class UmlgSchemaMapImpl implements UmlgSchemaMap {
static public UmlgSchemaMapImpl INSTANCE = new UmlgSchemaMapImpl();
private Map> qualifiedNameClassMap = new HashMap>();
/**
* constructor for UmlgSchemaMapImpl
*/
private UmlgSchemaMapImpl() {
addAllEntries();
}
public Class get(String qualifiedName) {
return (Class)this.qualifiedNameClassMap.get(qualifiedName);
}
static public UmlgSchemaMap getInstance() {
return INSTANCE;
}
private void addAllEntries() {
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::testocl::OclTest1", OclTest1.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::testocl::OclTestCollection", OclTestCollection.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::testocl::OclTestCollection2", OclTestCollection2.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::testocl::OclTest2", OclTest2.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::qualifier::Bank", Bank.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::qualifier::Customer", Customer.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::qualifier::Employee", Employee.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::qualifier::Depth1", Depth1.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::qualifier::Depth2", Depth2.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::qualifier::A", A.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::qualifier::B", B.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::qualifier::C", C.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::qualifier::D", D.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::oclassociationrole::One", One.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::oclassociationrole::Many", Many.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::associationclass::Person", Person.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::associationclass::Company", Company.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::associationclass::Job", Job.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::associationclass::Friendship", Friendship.class);
this.qualifiedNameClassMap.put("testoclmodel::org::umlg::enumeration::TestEnumeration", TestEnumeration.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy