public class WildcardIndexing extends SingleContextDocumentProcessor implements com.exalead.util.Checkable, java.io.Serializable
SingleContextDocumentProcessor.Transformer<T>
DocumentProcessor.FromDataModel
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_EXACT_SCORE |
static int |
DEFAULT_MAX_STRING_SIZE |
static int |
DEFAULT_PREFIX_SCORE |
static boolean |
DEFAULT_PREFIX_SEARCH |
static int |
DEFAULT_SUBSTRING_SCORE |
static boolean |
DEFAULT_SUBSTRING_SEARCH |
static int |
DEFAULT_SUFFIX_SCORE |
static boolean |
DEFAULT_SUFFIX_SEARCH |
int |
exactScore |
int |
maxStringSize |
java.lang.String |
outputContext |
int |
prefixScore |
boolean |
prefixSearch |
int |
substringScore |
boolean |
substringSearch |
int |
suffixScore |
boolean |
suffixSearch |
inputContext
acceptCondition, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
WildcardIndexing() |
WildcardIndexing(WildcardIndexing o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(DocumentProcessor.Transformer<T> transformer,
T[] t) |
<T> T |
accept(SingleContextDocumentProcessor.Transformer<T> transformer,
T[] t) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this WildcardIndexing.
|
static WildcardIndexing |
fromString(java.lang.String s)
String representation of this WildcardIndexing.
|
int |
getExactScore()
Specifies the score for an exact match.
|
int |
getMaxStringSize()
Specifies the max string size for which this processor will be applied.
|
java.lang.String |
getOutputContext()
Stores exact/prefix/substring/suffix in outputContext.
|
int |
getPrefixScore()
Specifies the score for a prefix match.
|
int |
getSubstringScore()
Specifies the score for a substring match.
|
int |
getSuffixScore()
Specifies the score for a suffix match.
|
boolean |
isPrefixSearch()
Enables the prefix search.
|
boolean |
isSubstringSearch()
Enables the substring search.
|
boolean |
isSuffixSearch()
Enables the suffix search.
|
WildcardIndexing |
makeCopy()
Creates and returns a deep copy of this WildcardIndexing.
|
static WildcardIndexing |
readFrom(java.io.InputStream is)
Read this WildcardIndexing from an XML fragment.
|
void |
setExactScore(int exactScore)
Specifies the score for an exact match.
|
void |
setMaxStringSize(int maxStringSize)
Specifies the max string size for which this processor will be applied.
|
void |
setOutputContext(java.lang.String outputContext)
Stores exact/prefix/substring/suffix in outputContext.
|
void |
setPrefixScore(int prefixScore)
Specifies the score for a prefix match.
|
void |
setPrefixSearch(boolean prefixSearch)
Enables the prefix search.
|
void |
setSubstringScore(int substringScore)
Specifies the score for a substring match.
|
void |
setSubstringSearch(boolean substringSearch)
Enables the substring search.
|
void |
setSuffixScore(int suffixScore)
Specifies the score for a suffix match.
|
void |
setSuffixSearch(boolean suffixSearch)
Enables the suffix search.
|
java.lang.String |
toString()
String representation of this WildcardIndexing.
|
WildcardIndexing |
withAcceptCondition(AcceptCondition acceptCondition) |
WildcardIndexing |
withDataModelClass(java.lang.String dataModelClass) |
WildcardIndexing |
withDataModelProperty(java.lang.String dataModelProperty) |
WildcardIndexing |
withDataModelState(java.lang.String dataModelState) |
WildcardIndexing |
withDisabled(boolean disabled) |
WildcardIndexing |
withDisabled(java.lang.Boolean disabled) |
WildcardIndexing |
withExactScore(int exactScore) |
WildcardIndexing |
withExactScore(java.lang.Integer exactScore) |
WildcardIndexing |
withFromDataModel(DocumentProcessor fromDataModel) |
WildcardIndexing |
withInputContext(java.lang.String inputContext) |
WildcardIndexing |
withMaxStringSize(int maxStringSize) |
WildcardIndexing |
withMaxStringSize(java.lang.Integer maxStringSize) |
WildcardIndexing |
withName(java.lang.String name) |
WildcardIndexing |
withOutputContext(java.lang.String outputContext) |
WildcardIndexing |
withPrefixScore(int prefixScore) |
WildcardIndexing |
withPrefixScore(java.lang.Integer prefixScore) |
WildcardIndexing |
withPrefixSearch(boolean prefixSearch) |
WildcardIndexing |
withPrefixSearch(java.lang.Boolean prefixSearch) |
WildcardIndexing |
withSubstringScore(int substringScore) |
WildcardIndexing |
withSubstringScore(java.lang.Integer substringScore) |
WildcardIndexing |
withSubstringSearch(boolean substringSearch) |
WildcardIndexing |
withSubstringSearch(java.lang.Boolean substringSearch) |
WildcardIndexing |
withSuffixScore(int suffixScore) |
WildcardIndexing |
withSuffixScore(java.lang.Integer suffixScore) |
WildcardIndexing |
withSuffixSearch(boolean suffixSearch) |
WildcardIndexing |
withSuffixSearch(java.lang.Boolean suffixSearch) |
void |
writeTo(java.io.OutputStream os)
Write this WildcardIndexing as an XML fragment
|
getInputContext, setInputContext
getAcceptCondition, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setAcceptCondition, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String outputContext
public int exactScore
public static final int DEFAULT_EXACT_SCORE
public boolean prefixSearch
public static final boolean DEFAULT_PREFIX_SEARCH
public int prefixScore
public static final int DEFAULT_PREFIX_SCORE
public boolean suffixSearch
public static final boolean DEFAULT_SUFFIX_SEARCH
public int suffixScore
public static final int DEFAULT_SUFFIX_SCORE
public boolean substringSearch
public static final boolean DEFAULT_SUBSTRING_SEARCH
public int substringScore
public static final int DEFAULT_SUBSTRING_SCORE
public int maxStringSize
public static final int DEFAULT_MAX_STRING_SIZE
public WildcardIndexing()
public WildcardIndexing(WildcardIndexing o)
public WildcardIndexing withInputContext(java.lang.String inputContext)
withInputContext
in class SingleContextDocumentProcessor
public WildcardIndexing withAcceptCondition(AcceptCondition acceptCondition)
withAcceptCondition
in class SingleContextDocumentProcessor
public WildcardIndexing withName(java.lang.String name)
withName
in class SingleContextDocumentProcessor
public WildcardIndexing withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SingleContextDocumentProcessor
public WildcardIndexing withFromDataModel(DocumentProcessor fromDataModel)
withFromDataModel
in class SingleContextDocumentProcessor
public WildcardIndexing withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SingleContextDocumentProcessor
public WildcardIndexing withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SingleContextDocumentProcessor
public WildcardIndexing withDisabled(boolean disabled)
withDisabled
in class SingleContextDocumentProcessor
public WildcardIndexing withDisabled(java.lang.Boolean disabled)
withDisabled
in class SingleContextDocumentProcessor
public void setOutputContext(java.lang.String outputContext)
public java.lang.String getOutputContext()
public WildcardIndexing withOutputContext(java.lang.String outputContext)
public void setExactScore(int exactScore)
public int getExactScore()
public WildcardIndexing withExactScore(int exactScore)
public WildcardIndexing withExactScore(java.lang.Integer exactScore)
public void setPrefixSearch(boolean prefixSearch)
public boolean isPrefixSearch()
public WildcardIndexing withPrefixSearch(boolean prefixSearch)
public WildcardIndexing withPrefixSearch(java.lang.Boolean prefixSearch)
public void setPrefixScore(int prefixScore)
public int getPrefixScore()
public WildcardIndexing withPrefixScore(int prefixScore)
public WildcardIndexing withPrefixScore(java.lang.Integer prefixScore)
public void setSuffixSearch(boolean suffixSearch)
public boolean isSuffixSearch()
public WildcardIndexing withSuffixSearch(boolean suffixSearch)
public WildcardIndexing withSuffixSearch(java.lang.Boolean suffixSearch)
public void setSuffixScore(int suffixScore)
public int getSuffixScore()
public WildcardIndexing withSuffixScore(int suffixScore)
public WildcardIndexing withSuffixScore(java.lang.Integer suffixScore)
public void setSubstringSearch(boolean substringSearch)
public boolean isSubstringSearch()
public WildcardIndexing withSubstringSearch(boolean substringSearch)
public WildcardIndexing withSubstringSearch(java.lang.Boolean substringSearch)
public void setSubstringScore(int substringScore)
public int getSubstringScore()
public WildcardIndexing withSubstringScore(int substringScore)
public WildcardIndexing withSubstringScore(java.lang.Integer substringScore)
public void setMaxStringSize(int maxStringSize)
public int getMaxStringSize()
public WildcardIndexing withMaxStringSize(int maxStringSize)
public WildcardIndexing withMaxStringSize(java.lang.Integer maxStringSize)
public WildcardIndexing makeCopy()
makeCopy
in class SingleContextDocumentProcessor
public static WildcardIndexing 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
writeTo
in class SingleContextDocumentProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static WildcardIndexing 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 SingleContextDocumentProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SingleContextDocumentProcessor
com.exalead.util.TypedException
public <T> T accept(SingleContextDocumentProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SingleContextDocumentProcessor
com.exalead.util.TypedException
public <T> T accept(DocumentProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class DocumentProcessor
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.