LuceneAggregateInclude.java 1.36 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.google.common.base.Preconditions
 *  com.google.common.base.Strings
 *  javax.annotation.Nonnull
 */
package com.adobe.granite.repository.impl.lucene.util;

import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import javax.annotation.Nonnull;

public class LuceneAggregateInclude {
    private String nodeName;
    private String path;
    private String primaryType;
    private boolean relativeNode;

    public LuceneAggregateInclude(@Nonnull String nodeName, @Nonnull String path) {
        this(nodeName, path, false, null);
    }

    public LuceneAggregateInclude(@Nonnull String nodeName, @Nonnull String path, boolean relativeNode, String primaryType) {
        Preconditions.checkArgument((boolean)(!Strings.isNullOrEmpty((String)nodeName)));
        Preconditions.checkArgument((boolean)(!Strings.isNullOrEmpty((String)path)));
        this.nodeName = nodeName;
        this.path = path;
        this.relativeNode = relativeNode;
        this.primaryType = primaryType;
    }

    public boolean isRelativeNode() {
        return this.relativeNode;
    }

    public String getPath() {
        return this.path;
    }

    public String getPrimaryType() {
        return this.primaryType;
    }

    public String getNodeName() {
        return this.nodeName;
    }
}