예제 #1
0
 public Classification newClassificationWithoutCheck(boolean useDefaults) {
   final ClassificationImpl classification = new ClassificationImpl(this);
   if (resolver != null) {
     classification.setResolver(resolver);
   }
   // Array could not be up todate
   final Attribute[] attributes2 = getAttributes();
   if (useDefaults) {
     for (Attribute att : attributes2) {
       final Object defaultValue = att.defaultValue();
       if (defaultValue != null) {
         classification.setValue(att, defaultValue);
       }
     }
   }
   return classification;
 }