コード例 #1
0
 public SchemaFieldIgnoreMap(Set<? extends EPackage> packages, SchemaDefinition schema) {
   super(packages);
   ArrayList<EntityDefinition> entities = schema.getEntities();
   for (EntityDefinition entity : entities) {
     for (Attribute attribute : entity.getAttributes(true)) {
       if (attribute instanceof InverseAttribute) {
         if (attribute.getName().equals("HasOpenings")) {
           // || attribute.getName().equals("IsDecomposedBy") ||
           // attribute.getName().equals("ContainedInStructure") ||
           // attribute.getName().equals("FillsVoids") ||
           // attribute.getName().equals("VoidsElements")
           // Exception: http://code.google.com/p/bimserver/issues/detail?id=303
           // Addition: Leon says this should be done for all types
         } else {
           addToGeneralIgnoreSet(
               new StructuralFeatureIdentifier(entity.getName(), attribute.getName()));
         }
       }
     }
   }
 }