in OpenCalaisAnnotator/src/main/java/org/apache/uima/annotator/calais/OpenCalaisAnnotator.java [313:365]
public void typeSystemInit(TypeSystem typeSystem) throws AnalysisEngineProcessException {
super.typeSystemInit(typeSystem);
// get types and features
this.personType = typeSystem.getType("org.apache.uima.calais.Person");
this.anniversaryType = typeSystem.getType("org.apache.uima.calais.Anniversary");
this.cityType = typeSystem.getType("org.apache.uima.calais.City");
this.companyType = typeSystem.getType("org.apache.uima.calais.Company");
this.continentType = typeSystem.getType("org.apache.uima.calais.Continent");
this.countryType = typeSystem.getType("org.apache.uima.calais.Country");
this.currencyType = typeSystem.getType("org.apache.uima.calais.Currency");
this.emailAddressType = typeSystem.getType("org.apache.uima.calais.EmailAddress");
this.facilityType = typeSystem.getType("org.apache.uima.calais.Facility");
this.faxNumberType = typeSystem.getType("org.apache.uima.calais.FaxNumber");
this.holidayType = typeSystem.getType("org.apache.uima.calais.Holiday");
this.industryTermType = typeSystem.getType("org.apache.uima.calais.IndustryTerm");
this.naturalDisasterType = typeSystem.getType("org.apache.uima.calais.NaturalDisaster");
this.naturalFeatureType = typeSystem.getType("org.apache.uima.calais.NaturalFeature");
this.organizationType = typeSystem.getType("org.apache.uima.calais.Organization");
this.phoneNumberType = typeSystem.getType("org.apache.uima.calais.PhoneNumber");
this.provinceOrStateType = typeSystem.getType("org.apache.uima.calais.ProviceOrState");
this.regionType = typeSystem.getType("org.apache.uima.calais.Region");
this.technologyType = typeSystem.getType("org.apache.uima.calais.Technology");
this.urlType = typeSystem.getType("org.apache.uima.calais.URL");
this.calaisTypeFeat = this.personType.getFeatureByBaseName("calaisType");
// create type mapping HashMap
this.typeMapping = new HashMap<String, Type>(20);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Person", this.personType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Anniversary", this.anniversaryType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/City", this.cityType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Company", this.companyType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Continent", this.continentType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Country", this.countryType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Currency", this.currencyType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/EmailAddress", this.emailAddressType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Facility", this.facilityType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/FaxNumber", this.faxNumberType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Holiday", this.holidayType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/IndustryTerm", this.industryTermType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/NaturalDisaster",
this.naturalDisasterType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/NaturalFeature",
this.naturalFeatureType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Organization", this.organizationType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/PhoneNumber", this.phoneNumberType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/ProvinceOrState",
this.provinceOrStateType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Region", this.regionType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/Technology", this.technologyType);
this.typeMapping.put("http://s.opencalais.com/1/type/em/e/URL", this.urlType);
}