public class ProximityBoostConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED |
static int |
DEFAULT_MAX_DISTANCE |
boolean |
enabled |
int |
maxDistance |
Constructor and Description |
---|
ProximityBoostConfig() |
ProximityBoostConfig(boolean enabled,
int maxDistance) |
ProximityBoostConfig(ProximityBoostConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ProximityBoostConfig.
|
static ProximityBoostConfig |
fromString(java.lang.String s)
String representation of this ProximityBoostConfig.
|
int |
getMaxDistance()
Do not apply proximity boost if words are separated by more than 'maxDistance' words.
|
boolean |
isEnabled()
Enables proximity calculation globally.
|
ProximityBoostConfig |
makeCopy()
Creates and returns a deep copy of this ProximityBoostConfig.
|
static ProximityBoostConfig |
readFrom(java.io.InputStream is)
Read this ProximityBoostConfig from an XML fragment.
|
void |
setEnabled(boolean enabled)
Enables proximity calculation globally.
|
void |
setMaxDistance(int maxDistance)
Do not apply proximity boost if words are separated by more than 'maxDistance' words.
|
java.lang.String |
toString()
String representation of this ProximityBoostConfig.
|
ProximityBoostConfig |
withEnabled(boolean enabled) |
ProximityBoostConfig |
withEnabled(java.lang.Boolean enabled) |
ProximityBoostConfig |
withMaxDistance(int maxDistance) |
ProximityBoostConfig |
withMaxDistance(java.lang.Integer maxDistance) |
void |
writeTo(java.io.OutputStream os)
Write this ProximityBoostConfig as an XML fragment
|
public boolean enabled
public static final boolean DEFAULT_ENABLED
public int maxDistance
public static final int DEFAULT_MAX_DISTANCE
public ProximityBoostConfig()
public ProximityBoostConfig(boolean enabled, int maxDistance)
public ProximityBoostConfig(ProximityBoostConfig o)
public void setEnabled(boolean enabled)
public boolean isEnabled()
public ProximityBoostConfig withEnabled(boolean enabled)
public ProximityBoostConfig withEnabled(java.lang.Boolean enabled)
public void setMaxDistance(int maxDistance)
public int getMaxDistance()
public ProximityBoostConfig withMaxDistance(int maxDistance)
public ProximityBoostConfig withMaxDistance(java.lang.Integer maxDistance)
public ProximityBoostConfig makeCopy()
public static ProximityBoostConfig 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 ProximityBoostConfig 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 © 2013 Dassault Systèmes, All Rights Reserved.