summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/FieldOperationApplierForStructs.java
blob: 4a5a858f82821259f13aa1fc96ccda469206f994 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition;

import com.yahoo.document.DataType;
import com.yahoo.document.Field;
import com.yahoo.searchdefinition.document.SDDocumentType;
import com.yahoo.searchdefinition.document.SDField;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @author Einar M R Rosenvinge
 */
public class FieldOperationApplierForStructs extends FieldOperationApplier {

    @Override
    public void process(SDDocumentType sdoc) {
        for (SDDocumentType type : sdoc.getAllTypes()) {
            if (type.isStruct()) {
                apply(type);
            }
        }
    }

}