コード例 #1
0
 private void removeValueTypeOverride(RDFSNamedClass cls, Slot slot) {
   if (slot != null && ((Cls) cls).hasDirectlyOverriddenTemplateFacet(slot, valueTypeFacet)) {
     ((Cls) cls).setTemplateSlotAllowedClses(slot, Collections.EMPTY_LIST);
     ((Cls) cls).setTemplateFacetValues(slot, valueTypeFacet, Collections.EMPTY_LIST);
     if (log.isLoggable(Level.FINE)) {
       log.fine("- Removed :VALUE-TYPE override from " + cls.getName() + "." + slot.getName());
     }
   }
 }
コード例 #2
0
 private void setAllowedClses(RDFSNamedClass cls, Slot slot, Collection newAllowedClses) {
   if (log.isLoggable(Level.FINE)) {
     log.fine("+ Setting allowed clses of " + cls.getName() + "." + slot.getName());
   }
   for (Iterator it = newAllowedClses.iterator(); it.hasNext(); ) {
     Cls ac = (Cls) it.next();
     if (log.isLoggable(Level.FINE)) {
       log.fine("  - " + ac.getBrowserText());
     }
   }
   ((Cls) cls).setTemplateSlotAllowedClses(slot, newAllowedClses);
 }