Example #1
0
 private ModelSpecification_c locateMesByNameAndClassType(
     Ooaofgraphics modelRoot, String name, String className) {
   ModelSpecification_c[] modelSpecs = ModelSpecification_c.ModelSpecificationInstances(modelRoot);
   for (int i = 0; i < modelSpecs.length; i++) {
     if (className != null) {
       // verify that the class name is the same
       if (!modelSpecs[i].getRepresents().getName().equals(className)) {
         continue;
       }
     }
     if (modelSpecs[i].getName().equals(name)) {
       return modelSpecs[i];
     }
   }
   Throwable e = new Throwable(name);
   logError("Specified Symbol specification not found: ", e);
   return null;
 }