com.hp.autonomy.aci.content.fieldtext.MATCHALL Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of content-parameter-api Show documentation
Show all versions of content-parameter-api Show documentation
API for representing aspects of IDOL's Content server, including FieldText and document References
/*
* Copyright 2009-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.aci.content.fieldtext;
import com.hp.autonomy.aci.content.internal.InternalUtils;
import org.apache.commons.lang.Validate;
import java.util.Arrays;
import java.util.Collections;
/**
* Fieldtext specifier for the MATCHALL operator
*/
public class MATCHALL extends Specifier {
public MATCHALL(final String field, final String value, final String... values) {
this(Collections.singletonList(field), value, values);
}
public MATCHALL(final String field, final String[] values) {
this(Collections.singletonList(field), values);
}
public MATCHALL(final String field, final Iterable values) {
this(Collections.singletonList(field), values);
}
public MATCHALL(final String[] fields, final String value, final String... values) {
this(Arrays.asList(fields), value, values);
}
public MATCHALL(final String[] fields, final String[] values) {
this(Arrays.asList(fields), values);
}
public MATCHALL(final String[] fields, final Iterable values) {
this(Arrays.asList(fields), values);
}
public MATCHALL(final Iterable fields, final String value, final String... values) {
this(fields, InternalUtils.toList(value, values));
}
public MATCHALL(final Iterable fields, final String[] values) {
this(fields, Arrays.asList(values));
}
public MATCHALL(final Iterable fields, final Iterable values) {
super("MATCHALL", fields, values);
Validate.isTrue(!getValues().isEmpty(), "No values specified");
}
public static MATCHALL MATCHALL(final String field, final String value, final String... values) {
return new MATCHALL(field, value, values);
}
public static MATCHALL MATCHALL(final String field, final String[] values) {
return new MATCHALL(field, values);
}
public static MATCHALL MATCHALL(final String field, final Iterable values) {
return new MATCHALL(field, values);
}
public static MATCHALL MATCHALL(final String[] fields, final String value, final String... values) {
return new MATCHALL(fields, value, values);
}
public static MATCHALL MATCHALL(final String[] fields, final String[] values) {
return new MATCHALL(fields, values);
}
public static MATCHALL MATCHALL(final String[] fields, final Iterable values) {
return new MATCHALL(fields, values);
}
public static MATCHALL MATCHALL(final Iterable fields, final String value, final String... values) {
return new MATCHALL(fields, value, values);
}
public static MATCHALL MATCHALL(final Iterable fields, final String[] values) {
return new MATCHALL(fields, values);
}
public static MATCHALL MATCHALL(final Iterable fields, final Iterable values) {
return new MATCHALL(fields, values);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy