Example #1
0
 protected List<FieldType> getFieldTypesFromNames(FieldTypes fieldTypes, QName... fieldNames)
     throws TypeException, InterruptedException {
   List<FieldType> fields = null;
   if (fieldNames != null) {
     fields = new ArrayList<FieldType>();
     for (QName fieldName : fieldNames) {
       fields.add(fieldTypes.getFieldType(fieldName));
     }
   }
   return fields;
 }
Example #2
0
 private List<FieldType> getFieldTypesFromIds(List<SchemaId> fieldIds, FieldTypes fieldTypes)
     throws TypeException, InterruptedException {
   List<FieldType> fields = null;
   if (fieldIds != null) {
     fields = new ArrayList<FieldType>(fieldIds.size());
     for (SchemaId fieldId : fieldIds) {
       fields.add(fieldTypes.getFieldType(fieldId));
     }
   }
   return fields;
 }