public class AcronymDetector extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
boolean |
addNormalizerAnnotation
Deprecated.
|
static boolean |
DEFAULT_ADD_NORMALIZER_ANNOTATION |
static boolean |
DEFAULT_STRICT |
static boolean |
DEFAULT_TRY_TO_SPLIT_WORDS |
java.lang.String |
language |
java.lang.String |
separators |
boolean |
strict |
boolean |
tryToSplitWords |
contexts, name, src
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 separated by ','
|
boolean |
isAddNormalizerAnnotation()
Deprecated.
|
boolean |
isStrict()
In strict mode, the only separator is dot.
|
boolean |
isTryToSplitWords()
If enabled, generates an annotation with a space between each letters
|
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)
Deprecated.
|
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 separated by ','
|
void |
setStrict(boolean strict)
In strict mode, the only separator is dot.
|
void |
setTryToSplitWords(boolean tryToSplitWords)
If enabled, generates an annotation with a space between each letters
|
java.lang.String |
toString()
String representation of this AcronymDetector.
|
AcronymDetector |
withAddNormalizerAnnotation(boolean addNormalizerAnnotation)
Deprecated.
|
AcronymDetector |
withAddNormalizerAnnotation(java.lang.Boolean addNormalizerAnnotation)
Deprecated.
|
AcronymDetector |
withContexts(java.lang.String contexts) |
AcronymDetector |
withLanguage(java.lang.String language) |
AcronymDetector |
withName(java.lang.String name) |
AcronymDetector |
withSeparators(java.lang.String separators) |
AcronymDetector |
withSrc(java.lang.String src)
Deprecated.
|
AcronymDetector |
withStrict(boolean strict) |
AcronymDetector |
withStrict(java.lang.Boolean strict) |
AcronymDetector |
withTryToSplitWords(boolean tryToSplitWords) |
AcronymDetector |
withTryToSplitWords(java.lang.Boolean tryToSplitWords) |
void |
writeTo(java.io.OutputStream os)
Write this AcronymDetector as an XML fragment
|
getContexts, getName, getSrc, setContexts, setName, setSrc
@Deprecated public boolean addNormalizerAnnotation
public static final boolean DEFAULT_ADD_NORMALIZER_ANNOTATION
public boolean tryToSplitWords
public static final boolean DEFAULT_TRY_TO_SPLIT_WORDS
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
@Deprecated public AcronymDetector withSrc(java.lang.String src)
withSrc
in class SemanticProcessor
@Deprecated public void setAddNormalizerAnnotation(boolean addNormalizerAnnotation)
@Deprecated public boolean isAddNormalizerAnnotation()
@Deprecated public AcronymDetector withAddNormalizerAnnotation(boolean addNormalizerAnnotation)
@Deprecated public AcronymDetector withAddNormalizerAnnotation(java.lang.Boolean addNormalizerAnnotation)
public void setTryToSplitWords(boolean tryToSplitWords)
public boolean isTryToSplitWords()
public AcronymDetector withTryToSplitWords(boolean tryToSplitWords)
public AcronymDetector withTryToSplitWords(java.lang.Boolean tryToSplitWords)
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 © 2013 Dassault Systèmes, All Rights Reserved.