public class QueryTermCountRestrictionConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
QueryTermCountRestrictionConfig.Action |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
action |
static java.lang.String |
DEFAULT_ACTION |
static int |
DEFAULT_MAXIMUM_TERM_COUNT |
int |
maximumTermCount |
Constructor and Description |
---|
QueryTermCountRestrictionConfig() |
QueryTermCountRestrictionConfig(QueryTermCountRestrictionConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this QueryTermCountRestrictionConfig.
|
static QueryTermCountRestrictionConfig |
fromString(java.lang.String s)
String representation of this QueryTermCountRestrictionConfig.
|
java.lang.String |
getAction()
Action if maximumTermCount is reached: drop query or cleanup extra values.
|
QueryTermCountRestrictionConfig.Action |
getActionAsEnum()
Action if maximumTermCount is reached: drop query or cleanup extra values.
|
int |
getMaximumTermCount()
Maximum number of alphanumeric tokens allowed in a query.
|
static boolean |
isA(java.lang.String str,
QueryTermCountRestrictionConfig.Action item) |
static boolean |
isOneOf(java.lang.String str,
QueryTermCountRestrictionConfig.Action... items) |
QueryTermCountRestrictionConfig |
makeCopy()
Creates and returns a deep copy of this QueryTermCountRestrictionConfig.
|
static QueryTermCountRestrictionConfig |
readFrom(java.io.InputStream is)
Read this QueryTermCountRestrictionConfig from an XML fragment.
|
void |
setAction(QueryTermCountRestrictionConfig.Action item)
Action if maximumTermCount is reached: drop query or cleanup extra values.
|
void |
setAction(java.lang.String action)
Action if maximumTermCount is reached: drop query or cleanup extra values.
|
void |
setMaximumTermCount(int maximumTermCount)
Maximum number of alphanumeric tokens allowed in a query.
|
java.lang.String |
toString()
String representation of this QueryTermCountRestrictionConfig.
|
QueryTermCountRestrictionConfig |
withAction(java.lang.String action) |
QueryTermCountRestrictionConfig |
withMaximumTermCount(int maximumTermCount) |
QueryTermCountRestrictionConfig |
withMaximumTermCount(java.lang.Integer maximumTermCount) |
void |
writeTo(java.io.OutputStream os)
Write this QueryTermCountRestrictionConfig as an XML fragment
|
public int maximumTermCount
public static final int DEFAULT_MAXIMUM_TERM_COUNT
public java.lang.String action
public static final java.lang.String DEFAULT_ACTION
public QueryTermCountRestrictionConfig()
public QueryTermCountRestrictionConfig(QueryTermCountRestrictionConfig o)
public static boolean isA(java.lang.String str, QueryTermCountRestrictionConfig.Action item)
public static boolean isOneOf(java.lang.String str, QueryTermCountRestrictionConfig.Action... items)
public void setAction(QueryTermCountRestrictionConfig.Action item)
public QueryTermCountRestrictionConfig.Action getActionAsEnum()
public void setMaximumTermCount(int maximumTermCount)
public int getMaximumTermCount()
public QueryTermCountRestrictionConfig withMaximumTermCount(int maximumTermCount)
public QueryTermCountRestrictionConfig withMaximumTermCount(java.lang.Integer maximumTermCount)
public void setAction(java.lang.String action)
public java.lang.String getAction()
public QueryTermCountRestrictionConfig withAction(java.lang.String action)
public QueryTermCountRestrictionConfig makeCopy()
public static QueryTermCountRestrictionConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static QueryTermCountRestrictionConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.