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; }
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; }