public class Anchorer extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.FromDataModel, SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_FINAL_ANNOTATION_ON_NEXT_TOKEN |
static boolean |
DEFAULT_FINAL_CANNOT_BE_SEP_SPACE |
boolean |
finalAnnotationOnNextToken |
boolean |
finalCannotBeSepSpace |
java.lang.String |
tagsToAnchor |
contexts, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
Anchorer() |
Anchorer(Anchorer 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 Anchorer.
|
static Anchorer |
fromString(java.lang.String s)
String representation of this Anchorer.
|
java.lang.String |
getTagsToAnchor()
List of comma-separated tags on which to work
|
boolean |
isFinalAnnotationOnNextToken()
If true, sets final annotation on the token after the last token of annotation a
|
boolean |
isFinalCannotBeSepSpace()
If final can't be a space, the annotation last may be set on the next non-blank token
|
Anchorer |
makeCopy()
Creates and returns a deep copy of this Anchorer.
|
static Anchorer |
readFrom(java.io.InputStream is)
Read this Anchorer from an XML fragment.
|
void |
setFinalAnnotationOnNextToken(boolean finalAnnotationOnNextToken)
If true, sets final annotation on the token after the last token of annotation a
|
void |
setFinalCannotBeSepSpace(boolean finalCannotBeSepSpace)
If final can't be a space, the annotation last may be set on the next non-blank token
|
void |
setTagsToAnchor(java.lang.String tagsToAnchor)
List of comma-separated tags on which to work
|
java.lang.String |
toString()
String representation of this Anchorer.
|
Anchorer |
withContexts(java.lang.String contexts) |
Anchorer |
withDataModelClass(java.lang.String dataModelClass) |
Anchorer |
withDataModelProperty(java.lang.String dataModelProperty) |
Anchorer |
withDataModelState(java.lang.String dataModelState) |
Anchorer |
withDisabled(boolean disabled) |
Anchorer |
withDisabled(java.lang.Boolean disabled) |
Anchorer |
withFinalAnnotationOnNextToken(boolean finalAnnotationOnNextToken) |
Anchorer |
withFinalAnnotationOnNextToken(java.lang.Boolean finalAnnotationOnNextToken) |
Anchorer |
withFinalCannotBeSepSpace(boolean finalCannotBeSepSpace) |
Anchorer |
withFinalCannotBeSepSpace(java.lang.Boolean finalCannotBeSepSpace) |
Anchorer |
withFromDataModel(SemanticProcessor fromDataModel) |
Anchorer |
withName(java.lang.String name) |
Anchorer |
withTagsToAnchor(java.lang.String tagsToAnchor) |
void |
writeTo(java.io.OutputStream os)
Write this Anchorer as an XML fragment
|
getContexts, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setContexts, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String tagsToAnchor
public boolean finalAnnotationOnNextToken
public static final boolean DEFAULT_FINAL_ANNOTATION_ON_NEXT_TOKEN
public boolean finalCannotBeSepSpace
public static final boolean DEFAULT_FINAL_CANNOT_BE_SEP_SPACE
public Anchorer()
public Anchorer(Anchorer o)
public Anchorer withName(java.lang.String name)
withName
in class SemanticProcessor
public Anchorer withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
public Anchorer withFromDataModel(SemanticProcessor fromDataModel)
public Anchorer withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SemanticProcessor
public Anchorer withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SemanticProcessor
public Anchorer withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SemanticProcessor
public Anchorer withDisabled(boolean disabled)
withDisabled
in class SemanticProcessor
public Anchorer withDisabled(java.lang.Boolean disabled)
withDisabled
in class SemanticProcessor
public void setTagsToAnchor(java.lang.String tagsToAnchor)
public java.lang.String getTagsToAnchor()
public Anchorer withTagsToAnchor(java.lang.String tagsToAnchor)
public void setFinalAnnotationOnNextToken(boolean finalAnnotationOnNextToken)
public boolean isFinalAnnotationOnNextToken()
public Anchorer withFinalAnnotationOnNextToken(boolean finalAnnotationOnNextToken)
public Anchorer withFinalAnnotationOnNextToken(java.lang.Boolean finalAnnotationOnNextToken)
public void setFinalCannotBeSepSpace(boolean finalCannotBeSepSpace)
public boolean isFinalCannotBeSepSpace()
public Anchorer withFinalCannotBeSepSpace(boolean finalCannotBeSepSpace)
public Anchorer withFinalCannotBeSepSpace(java.lang.Boolean finalCannotBeSepSpace)
public Anchorer makeCopy()
makeCopy
in class SemanticProcessor
public static Anchorer 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 Anchorer 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.