public class AcronymDetector extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.FromDataModel, SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
boolean |
addNormalizerAnnotation |
static boolean |
DEFAULT_ADD_NORMALIZER_ANNOTATION |
static boolean |
DEFAULT_STRICT |
java.lang.String |
language |
java.lang.String |
separators |
boolean |
strict |
contexts, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
AcronymDetector() |
AcronymDetector(AcronymDetector o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(SemanticProcessor.Transformer<T> transformer,
T[] t) |
void |
accept(SemanticProcessor.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this AcronymDetector.
|
static AcronymDetector |
fromString(java.lang.String s)
String representation of this AcronymDetector.
|
java.lang.String |
getLanguage()
Languages for which the processor is activated;
if no language is specified, the processor is activated for all languages. |
java.lang.String |
getSeparators()
List of allowed separators chars separated by ',' (can only be alphanumerical, for example, 'and' to handle '1 and 1')
|
boolean |
isAddNormalizerAnnotation() |
boolean |
isStrict()
In strict mode, the only separator is dot.
|
AcronymDetector |
makeCopy()
Creates and returns a deep copy of this AcronymDetector.
|
static AcronymDetector |
readFrom(java.io.InputStream is)
Read this AcronymDetector from an XML fragment.
|
void |
setAddNormalizerAnnotation(boolean addNormalizerAnnotation) |
void |
setLanguage(java.lang.String language)
Languages for which the processor is activated;
if no language is specified, the processor is activated for all languages. |
void |
setSeparators(java.lang.String separators)
List of allowed separators chars separated by ',' (can only be alphanumerical, for example, 'and' to handle '1 and 1')
|
void |
setStrict(boolean strict)
In strict mode, the only separator is dot.
|
java.lang.String |
toString()
String representation of this AcronymDetector.
|
AcronymDetector |
withAddNormalizerAnnotation(boolean addNormalizerAnnotation) |
AcronymDetector |
withAddNormalizerAnnotation(java.lang.Boolean addNormalizerAnnotation) |
AcronymDetector |
withContexts(java.lang.String contexts) |
AcronymDetector |
withDataModelClass(java.lang.String dataModelClass) |
AcronymDetector |
withDataModelProperty(java.lang.String dataModelProperty) |
AcronymDetector |
withDataModelState(java.lang.String dataModelState) |
AcronymDetector |
withDisabled(boolean disabled) |
AcronymDetector |
withDisabled(java.lang.Boolean disabled) |
AcronymDetector |
withFromDataModel(SemanticProcessor fromDataModel) |
AcronymDetector |
withLanguage(java.lang.String language) |
AcronymDetector |
withName(java.lang.String name) |
AcronymDetector |
withSeparators(java.lang.String separators) |
AcronymDetector |
withStrict(boolean strict) |
AcronymDetector |
withStrict(java.lang.Boolean strict) |
void |
writeTo(java.io.OutputStream os)
Write this AcronymDetector as an XML fragment
|
getContexts, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setContexts, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public boolean addNormalizerAnnotation
public static final boolean DEFAULT_ADD_NORMALIZER_ANNOTATION
public java.lang.String separators
public java.lang.String language
public boolean strict
public static final boolean DEFAULT_STRICT
public AcronymDetector()
public AcronymDetector(AcronymDetector o)
public AcronymDetector withName(java.lang.String name)
withName
in class SemanticProcessor
public AcronymDetector withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
public AcronymDetector withFromDataModel(SemanticProcessor fromDataModel)
public AcronymDetector withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SemanticProcessor
public AcronymDetector withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SemanticProcessor
public AcronymDetector withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SemanticProcessor
public AcronymDetector withDisabled(boolean disabled)
withDisabled
in class SemanticProcessor
public AcronymDetector withDisabled(java.lang.Boolean disabled)
withDisabled
in class SemanticProcessor
public void setAddNormalizerAnnotation(boolean addNormalizerAnnotation)
public boolean isAddNormalizerAnnotation()
public AcronymDetector withAddNormalizerAnnotation(boolean addNormalizerAnnotation)
public AcronymDetector withAddNormalizerAnnotation(java.lang.Boolean addNormalizerAnnotation)
public void setSeparators(java.lang.String separators)
public java.lang.String getSeparators()
public AcronymDetector withSeparators(java.lang.String separators)
public void setLanguage(java.lang.String language)
public java.lang.String getLanguage()
public AcronymDetector withLanguage(java.lang.String language)
public void setStrict(boolean strict)
public boolean isStrict()
public AcronymDetector withStrict(boolean strict)
public AcronymDetector withStrict(java.lang.Boolean strict)
public AcronymDetector makeCopy()
makeCopy
in class SemanticProcessor
public static AcronymDetector 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 SemanticProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static AcronymDetector 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 SemanticProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SemanticProcessor
com.exalead.util.TypedException
public void accept(SemanticProcessor.Visitor visitor) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
public <T> T accept(SemanticProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.