public class FarTextAnnotator extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.FromDataModel, SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
java.lang.String |
annotation |
static java.lang.String |
DEFAULT_ANNOTATION |
static int |
DEFAULT_START_OFFSET |
int |
startOffset |
contexts, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
FarTextAnnotator() |
FarTextAnnotator(FarTextAnnotator 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 FarTextAnnotator.
|
static FarTextAnnotator |
fromString(java.lang.String s)
String representation of this FarTextAnnotator.
|
java.lang.String |
getAnnotation() |
int |
getStartOffset() |
FarTextAnnotator |
makeCopy()
Creates and returns a deep copy of this FarTextAnnotator.
|
static FarTextAnnotator |
readFrom(java.io.InputStream is)
Read this FarTextAnnotator from an XML fragment.
|
void |
setAnnotation(java.lang.String annotation) |
void |
setStartOffset(int startOffset) |
java.lang.String |
toString()
String representation of this FarTextAnnotator.
|
FarTextAnnotator |
withAnnotation(java.lang.String annotation) |
FarTextAnnotator |
withContexts(java.lang.String contexts) |
FarTextAnnotator |
withDataModelClass(java.lang.String dataModelClass) |
FarTextAnnotator |
withDataModelProperty(java.lang.String dataModelProperty) |
FarTextAnnotator |
withDataModelState(java.lang.String dataModelState) |
FarTextAnnotator |
withDisabled(boolean disabled) |
FarTextAnnotator |
withDisabled(java.lang.Boolean disabled) |
FarTextAnnotator |
withFromDataModel(SemanticProcessor fromDataModel) |
FarTextAnnotator |
withName(java.lang.String name) |
FarTextAnnotator |
withStartOffset(int startOffset) |
FarTextAnnotator |
withStartOffset(java.lang.Integer startOffset) |
void |
writeTo(java.io.OutputStream os)
Write this FarTextAnnotator as an XML fragment
|
getContexts, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setContexts, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public int startOffset
public static final int DEFAULT_START_OFFSET
public java.lang.String annotation
public static final java.lang.String DEFAULT_ANNOTATION
public FarTextAnnotator()
public FarTextAnnotator(FarTextAnnotator o)
public FarTextAnnotator withName(java.lang.String name)
withName
in class SemanticProcessor
public FarTextAnnotator withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
public FarTextAnnotator withFromDataModel(SemanticProcessor fromDataModel)
public FarTextAnnotator withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SemanticProcessor
public FarTextAnnotator withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SemanticProcessor
public FarTextAnnotator withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SemanticProcessor
public FarTextAnnotator withDisabled(boolean disabled)
withDisabled
in class SemanticProcessor
public FarTextAnnotator withDisabled(java.lang.Boolean disabled)
withDisabled
in class SemanticProcessor
public void setStartOffset(int startOffset)
public int getStartOffset()
public FarTextAnnotator withStartOffset(int startOffset)
public FarTextAnnotator withStartOffset(java.lang.Integer startOffset)
public void setAnnotation(java.lang.String annotation)
public java.lang.String getAnnotation()
public FarTextAnnotator withAnnotation(java.lang.String annotation)
public FarTextAnnotator makeCopy()
makeCopy
in class SemanticProcessor
public static FarTextAnnotator 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 FarTextAnnotator 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.