Beispiel #1
0
 private boolean validateInternal(BaseSModelDescriptor.ModelLoadResult result)
     throws SAXException {
   new StructureModificationProcessor(fieldlinkMap, fieldmodel).updateModelOnLoad();
   fieldlinkMap.fillRoleIdsComponent();
   result.setState(ModelLoadingState.FULLY_LOADED);
   fieldmodel.setLoading(false);
   return true;
 }
Beispiel #2
0
 @Override
 protected void handleChild(Object resultObject, String tagName, Object value)
     throws SAXException {
   BaseSModelDescriptor.ModelLoadResult result =
       (BaseSModelDescriptor.ModelLoadResult) resultObject;
   if ("persistence".equals(tagName)) {
     return;
   }
   if ("language".equals(tagName)) {
     ModuleReference child = (ModuleReference) value;
     fieldmodel.addLanguage(child);
     return;
   }
   if ("language-engaged-on-generation".equals(tagName)) {
     ModuleReference child = (ModuleReference) value;
     fieldmodel.addEngagedOnGenerationLanguage(child);
     return;
   }
   if ("devkit".equals(tagName)) {
     ModuleReference child = (ModuleReference) value;
     fieldmodel.addDevKit(child);
     return;
   }
   if ("import".equals(tagName)) {
     String[] child = (String[]) value;
     fieldhelper.addImportToModel(
         fieldmodel, child[0], child[1], Integer.parseInt(child[2]), child[3] != null);
     return;
   }
   if ("roots".equals(tagName)) {
     Object child = (Object) value;
     if (fieldtoState == ModelLoadingState.ROOTS_LOADED
         && !(StructureModificationProcessor.hasRefactoringsToPlay(fieldmodel))) {
       result.setState(ModelLoadingState.ROOTS_LOADED);
       fieldmodel.setLoading(false);
       throw new BreakParseSAXException();
     }
     return;
   }
   if ("root".equals(tagName)) {
     return;
   }
   super.handleChild(resultObject, tagName, value);
 }