OverviewDoc overviewDoc = new OverviewDoc();
overviewDoc.setOverviewURL("http://www.viens.net/juddi/taxonomy_models.html#domain");
overviewDoc.addDescription(new Description("Taxonomy used to categorize entities by top level domain.",Language.ENGLISH));
TModel tModelIn = new TModel();
tModelIn.setAuthorizedName("Steve Viens");
tModelIn.setOperator("Viens.net");
tModelIn.setName("viens-net:domain");
tModelIn.setOverviewDoc(overviewDoc);
tModelIn.addDescription(new Description("Categorize entities by top level domain name.",Language.ENGLISH));
tModelIn.addCategory(new KeyedReference("uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4","types","categorization"));
tModelIn.addCategory(new KeyedReference("uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4","types","checked"));
Vector tModelVector = new Vector();
tModelVector.add(tModelIn);
TModelDetail detail = registry.saveTModel(authInfo,tModelVector);
TModel tModelOut = null;
if (detail.getTModelVector().size() > 0)
tModelOut = (TModel)detail.getTModelVector().elementAt(0);
System.out.println("TModel Key: "+tModelOut.getTModelKey());
}
catch (RegistryException regex)
{
DispositionReport dispReport = regex.getDispositionReport();
Vector resultVector = dispReport.getResultVector();