\r
/** Creates an cdm-Rank by the tcs rank\r
*/\r
- public static Reference pubTypeStr2PubType (String strPubType) throws UnknownCdmTypeException{\r
+ public static Reference<?> pubTypeStr2PubType (String strPubType) throws UnknownCdmTypeException{\r
String tcsRoot = "http://rs.tdwg.org/ontology/voc/PublicationCitation#";\r
String tcsBook = tcsRoot + "Book";\r
String tcsJournal = tcsRoot + "Journal";\r
// SubReference A Sub-Reference type publication.\r
// Thesis A Thesis type publication.\r
\r
- ReferenceFactory refFactory = ReferenceFactory.newInstance();\r
if (strPubType == null){return null;\r
- }else if (tcsBookSection.equals(strPubType)){return refFactory.newBookSection();\r
- }else if (tcsBook.equals(strPubType)){return refFactory.newBook();\r
- }else if (tcsArticle.equals(strPubType)){return refFactory.newArticle();\r
- }else if (tcsJournal.equals(strPubType)){return refFactory.newJournal();\r
- }else if (tcsWebPage.equals(strPubType)){return refFactory.newWebPage();\r
- }else if (tcsCommunication.equals(strPubType)){return refFactory.newPersonalCommunication();\r
- }else if (tcsBookSeries.equals(strPubType)){return refFactory.newPrintSeries();\r
+ }else if (tcsBookSection.equals(strPubType)){return ReferenceFactory.newBookSection();\r
+ }else if (tcsBook.equals(strPubType)){return ReferenceFactory.newBook();\r
+ }else if (tcsArticle.equals(strPubType)){return ReferenceFactory.newArticle();\r
+ }else if (tcsJournal.equals(strPubType)){return ReferenceFactory.newJournal();\r
+ }else if (tcsWebPage.equals(strPubType)){return ReferenceFactory.newWebPage();\r
+ }else if (tcsCommunication.equals(strPubType)){return ReferenceFactory.newPersonalCommunication();\r
+ }else if (tcsBookSeries.equals(strPubType)){return ReferenceFactory.newPrintSeries();\r
} \r
else {\r
throw new UnknownCdmTypeException("Unknown publication type " + strPubType);\r
\r
/** Creates an cdm-RelationshipTermBase by the tcsRelationshipCategory\r
*/\r
- public static RelationshipTermBase tcsRelationshipType2Relationship (String tcsRelationshipType, ResultWrapper<Boolean> inverse) throws UnknownCdmTypeException{\r
+ public static RelationshipTermBase<?> tcsRelationshipType2Relationship (String tcsRelationshipType, ResultWrapper<Boolean> inverse) throws UnknownCdmTypeException{\r
if (tcsRelationshipType == null){ return null;\r
\r
//Synonym relationships\r