public class ContextMapping
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ContextMapping.FromDataModel |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
dataModelClass |
java.lang.String |
dataModelProperty |
java.lang.String |
dataModelState |
static boolean |
DEFAULT_PATTERN_MATCH |
static boolean |
DEFAULT_PREFIX_MATCH |
static int |
DEFAULT_RESOURCE_FREQ |
static boolean |
DEFAULT_SEMANTIC |
static boolean |
DEFAULT_UNPREFIX |
protected ContextMapping.FromDataModel |
fromDataModel |
java.lang.String |
name |
boolean |
patternMatch |
boolean |
prefixMatch |
int |
resourceFreq
Deprecated.
|
boolean |
semantic |
java.util.List<Target> |
target |
java.lang.String |
tokenizationConfig |
boolean |
unprefix |
Constructor and Description |
---|
ContextMapping() |
ContextMapping(ContextMapping o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ContextMapping.
|
static ContextMapping |
fromString(java.lang.String s)
String representation of this ContextMapping.
|
java.lang.String |
getDataModelClass()
If dataModelState is "auto" or "customized", you will find here the
name of the DataModelClass that generated this context mapping. |
java.lang.String |
getDataModelProperty()
If dataModelState is "auto" or "customized", you will find here the
name of the DataModelProperty that generated this ContextMapping |
java.lang.String |
getDataModelState()
Is this content target managed by a data model?
|
ContextMapping.FromDataModel |
getFromDataModel() |
java.lang.String |
getName()
ContextName of the DocumentChunks to map.
|
int |
getResourceFreq()
Deprecated.
|
java.util.List<Target> |
getTarget() |
java.lang.String |
getTokenizationConfig() |
boolean |
isPatternMatch()
Matches all context matching this pattern (must be a valid regular expression).
|
boolean |
isPrefixMatch()
Matches all context that starts with this prefix.
|
boolean |
isSemantic()
Performs semantic processing on the DocumentChunks processed by this mapping.
If false, the textual content of the DocumentChunks will not be tokenized before indexing. |
boolean |
isUnprefix()
Remove the prefix that was used to match.
|
ContextMapping |
makeCopy()
Creates and returns a deep copy of this ContextMapping.
|
static ContextMapping |
readFrom(java.io.InputStream is)
Read this ContextMapping from an XML fragment.
|
void |
setDataModelClass(java.lang.String dataModelClass)
If dataModelState is "auto" or "customized", you will find here the
name of the DataModelClass that generated this context mapping. |
void |
setDataModelProperty(java.lang.String dataModelProperty)
If dataModelState is "auto" or "customized", you will find here the
name of the DataModelProperty that generated this ContextMapping |
void |
setDataModelState(java.lang.String dataModelState)
Is this content target managed by a data model?
|
void |
setFromDataModel(ContextMapping.FromDataModel __value) |
void |
setName(java.lang.String name)
ContextName of the DocumentChunks to map.
|
void |
setPatternMatch(boolean patternMatch)
Matches all context matching this pattern (must be a valid regular expression).
|
void |
setPrefixMatch(boolean prefixMatch)
Matches all context that starts with this prefix.
|
void |
setResourceFreq(int resourceFreq)
Deprecated.
|
void |
setSemantic(boolean semantic)
Performs semantic processing on the DocumentChunks processed by this mapping.
If false, the textual content of the DocumentChunks will not be tokenized before indexing. |
void |
setTokenizationConfig(java.lang.String tokenizationConfig) |
void |
setUnprefix(boolean unprefix)
Remove the prefix that was used to match.
|
java.lang.String |
toString()
String representation of this ContextMapping.
|
ContextMapping |
withDataModelClass(java.lang.String dataModelClass) |
ContextMapping |
withDataModelProperty(java.lang.String dataModelProperty) |
ContextMapping |
withDataModelState(java.lang.String dataModelState) |
ContextMapping |
withName(java.lang.String name) |
ContextMapping |
withPatternMatch(boolean patternMatch) |
ContextMapping |
withPatternMatch(java.lang.Boolean patternMatch) |
ContextMapping |
withPrefixMatch(boolean prefixMatch) |
ContextMapping |
withPrefixMatch(java.lang.Boolean prefixMatch) |
ContextMapping |
withResourceFreq(int resourceFreq)
Deprecated.
|
ContextMapping |
withResourceFreq(java.lang.Integer resourceFreq)
Deprecated.
|
ContextMapping |
withSemantic(boolean semantic) |
ContextMapping |
withSemantic(java.lang.Boolean semantic) |
ContextMapping |
withTarget(java.util.Collection<Target> __values) |
ContextMapping |
withTarget(Target... __values) |
ContextMapping |
withTokenizationConfig(java.lang.String tokenizationConfig) |
ContextMapping |
withUnprefix(boolean unprefix) |
ContextMapping |
withUnprefix(java.lang.Boolean unprefix) |
void |
writeTo(java.io.OutputStream os)
Write this ContextMapping as an XML fragment
|
public java.util.List<Target> target
public java.lang.String name
public boolean prefixMatch
public static final boolean DEFAULT_PREFIX_MATCH
public boolean unprefix
public static final boolean DEFAULT_UNPREFIX
public boolean patternMatch
public static final boolean DEFAULT_PATTERN_MATCH
public boolean semantic
public static final boolean DEFAULT_SEMANTIC
@Deprecated public int resourceFreq
public static final int DEFAULT_RESOURCE_FREQ
public java.lang.String tokenizationConfig
public java.lang.String dataModelState
protected ContextMapping.FromDataModel fromDataModel
public java.lang.String dataModelClass
public java.lang.String dataModelProperty
public ContextMapping()
public ContextMapping(ContextMapping o)
public java.util.List<Target> getTarget()
public ContextMapping withTarget(Target... __values)
public ContextMapping withTarget(java.util.Collection<Target> __values)
public void setName(java.lang.String name)
public java.lang.String getName()
public ContextMapping withName(java.lang.String name)
public void setPrefixMatch(boolean prefixMatch)
public boolean isPrefixMatch()
public ContextMapping withPrefixMatch(boolean prefixMatch)
public ContextMapping withPrefixMatch(java.lang.Boolean prefixMatch)
public void setUnprefix(boolean unprefix)
public boolean isUnprefix()
public ContextMapping withUnprefix(boolean unprefix)
public ContextMapping withUnprefix(java.lang.Boolean unprefix)
public void setPatternMatch(boolean patternMatch)
public boolean isPatternMatch()
public ContextMapping withPatternMatch(boolean patternMatch)
public ContextMapping withPatternMatch(java.lang.Boolean patternMatch)
public void setSemantic(boolean semantic)
public boolean isSemantic()
public ContextMapping withSemantic(boolean semantic)
public ContextMapping withSemantic(java.lang.Boolean semantic)
@Deprecated public void setResourceFreq(int resourceFreq)
@Deprecated public int getResourceFreq()
@Deprecated public ContextMapping withResourceFreq(int resourceFreq)
@Deprecated public ContextMapping withResourceFreq(java.lang.Integer resourceFreq)
public void setTokenizationConfig(java.lang.String tokenizationConfig)
public java.lang.String getTokenizationConfig()
public ContextMapping withTokenizationConfig(java.lang.String tokenizationConfig)
public void setDataModelState(java.lang.String dataModelState)
public java.lang.String getDataModelState()
public ContextMapping withDataModelState(java.lang.String dataModelState)
public ContextMapping.FromDataModel getFromDataModel()
public void setFromDataModel(ContextMapping.FromDataModel __value)
public void setDataModelClass(java.lang.String dataModelClass)
public java.lang.String getDataModelClass()
public ContextMapping withDataModelClass(java.lang.String dataModelClass)
public void setDataModelProperty(java.lang.String dataModelProperty)
public java.lang.String getDataModelProperty()
public ContextMapping withDataModelProperty(java.lang.String dataModelProperty)
public ContextMapping makeCopy()
public static ContextMapping 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 ContextMapping 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.