public class StandardAnnotationTarget extends AnnotationTarget implements com.exalead.util.Checkable, java.io.Serializable
AnnotationTarget.FromDataModel
Modifier and Type | Field and Description |
---|---|
int |
customIndexKind |
static boolean |
DEFAULT_RETRIEVABLE |
static boolean |
DEFAULT_SEARCHABLE |
java.lang.String |
indexLevel |
boolean |
retrievable |
java.lang.String |
retrieveField |
boolean |
searchable |
dataModelClass, dataModelProperty, dataModelState, DEFAULT_FORM, DEFAULT_RANK_BOOST, forcedRank, form, fromDataModel, indexField, rankBoost
Constructor and Description |
---|
StandardAnnotationTarget() |
StandardAnnotationTarget(StandardAnnotationTarget o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this StandardAnnotationTarget.
|
static StandardAnnotationTarget |
fromString(java.lang.String s)
String representation of this StandardAnnotationTarget.
|
int |
getCustomIndexKind()
If indexLevel = "custom", this index kind will be used.
|
java.lang.String |
getIndexLevel()
If searchable, index kind where data will be indexed.
Can be "exact", "lowercase", "normalized" or "custom". |
java.lang.String |
getRetrieveField()
The field where the SemanticAnnotation is stored for retrieval, if 'retrievable' is set to true.
If null, 'indexField' will be used to store the SemanticAnnotation for retrieval. |
boolean |
isRetrievable()
If true, the SemanticAnnotation can be retrieved.
|
boolean |
isSearchable()
If true, the SemanticAnnotation can be searched for.
|
StandardAnnotationTarget |
makeCopy()
Creates and returns a deep copy of this StandardAnnotationTarget.
|
static StandardAnnotationTarget |
readFrom(java.io.InputStream is)
Read this StandardAnnotationTarget from an XML fragment.
|
void |
setCustomIndexKind(int customIndexKind)
If indexLevel = "custom", this index kind will be used.
|
void |
setIndexLevel(java.lang.String indexLevel)
If searchable, index kind where data will be indexed.
Can be "exact", "lowercase", "normalized" or "custom". |
void |
setRetrievable(boolean retrievable)
If true, the SemanticAnnotation can be retrieved.
|
void |
setRetrieveField(java.lang.String retrieveField)
The field where the SemanticAnnotation is stored for retrieval, if 'retrievable' is set to true.
If null, 'indexField' will be used to store the SemanticAnnotation for retrieval. |
void |
setSearchable(boolean searchable)
If true, the SemanticAnnotation can be searched for.
|
java.lang.String |
toString()
String representation of this StandardAnnotationTarget.
|
StandardAnnotationTarget |
withCustomIndexKind(int customIndexKind) |
StandardAnnotationTarget |
withCustomIndexKind(java.lang.Integer customIndexKind) |
StandardAnnotationTarget |
withDataModelClass(java.lang.String dataModelClass) |
StandardAnnotationTarget |
withDataModelProperty(java.lang.String dataModelProperty) |
StandardAnnotationTarget |
withDataModelState(java.lang.String dataModelState) |
StandardAnnotationTarget |
withForcedRank(long forcedRank) |
StandardAnnotationTarget |
withForcedRank(java.lang.Long forcedRank) |
StandardAnnotationTarget |
withForm(java.lang.String form) |
StandardAnnotationTarget |
withFromDataModel(AnnotationTarget fromDataModel) |
StandardAnnotationTarget |
withIndexField(java.lang.String indexField) |
StandardAnnotationTarget |
withIndexLevel(java.lang.String indexLevel) |
StandardAnnotationTarget |
withRankBoost(long rankBoost) |
StandardAnnotationTarget |
withRankBoost(java.lang.Long rankBoost) |
StandardAnnotationTarget |
withRetrievable(boolean retrievable) |
StandardAnnotationTarget |
withRetrievable(java.lang.Boolean retrievable) |
StandardAnnotationTarget |
withRetrieveField(java.lang.String retrieveField) |
StandardAnnotationTarget |
withSearchable(boolean searchable) |
StandardAnnotationTarget |
withSearchable(java.lang.Boolean searchable) |
void |
writeTo(java.io.OutputStream os)
Write this StandardAnnotationTarget as an XML fragment
|
getDataModelClass, getDataModelProperty, getDataModelState, getForcedRank, getForm, getFromDataModel, getIndexField, getRankBoost, setDataModelClass, setDataModelProperty, setDataModelState, setForcedRank, setForm, setFromDataModel, setIndexField, setRankBoost
public boolean searchable
public static final boolean DEFAULT_SEARCHABLE
public java.lang.String indexLevel
public int customIndexKind
public boolean retrievable
public static final boolean DEFAULT_RETRIEVABLE
public java.lang.String retrieveField
public StandardAnnotationTarget()
public StandardAnnotationTarget(StandardAnnotationTarget o)
public StandardAnnotationTarget withIndexField(java.lang.String indexField)
withIndexField
in class AnnotationTarget
public StandardAnnotationTarget withForcedRank(long forcedRank)
withForcedRank
in class AnnotationTarget
public StandardAnnotationTarget withForcedRank(java.lang.Long forcedRank)
withForcedRank
in class AnnotationTarget
public StandardAnnotationTarget withRankBoost(long rankBoost)
withRankBoost
in class AnnotationTarget
public StandardAnnotationTarget withRankBoost(java.lang.Long rankBoost)
withRankBoost
in class AnnotationTarget
public StandardAnnotationTarget withForm(java.lang.String form)
withForm
in class AnnotationTarget
public StandardAnnotationTarget withDataModelState(java.lang.String dataModelState)
withDataModelState
in class AnnotationTarget
public StandardAnnotationTarget withFromDataModel(AnnotationTarget fromDataModel)
public StandardAnnotationTarget withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class AnnotationTarget
public StandardAnnotationTarget withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class AnnotationTarget
public void setSearchable(boolean searchable)
public boolean isSearchable()
public StandardAnnotationTarget withSearchable(boolean searchable)
public StandardAnnotationTarget withSearchable(java.lang.Boolean searchable)
public void setIndexLevel(java.lang.String indexLevel)
public java.lang.String getIndexLevel()
public StandardAnnotationTarget withIndexLevel(java.lang.String indexLevel)
public void setCustomIndexKind(int customIndexKind)
public int getCustomIndexKind()
public StandardAnnotationTarget withCustomIndexKind(int customIndexKind)
public StandardAnnotationTarget withCustomIndexKind(java.lang.Integer customIndexKind)
public void setRetrievable(boolean retrievable)
public boolean isRetrievable()
public StandardAnnotationTarget withRetrievable(boolean retrievable)
public StandardAnnotationTarget withRetrievable(java.lang.Boolean retrievable)
public void setRetrieveField(java.lang.String retrieveField)
public java.lang.String getRetrieveField()
public StandardAnnotationTarget withRetrieveField(java.lang.String retrieveField)
public StandardAnnotationTarget makeCopy()
makeCopy
in class AnnotationTarget
public static StandardAnnotationTarget 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 AnnotationTarget
javax.xml.bind.JAXBException
java.io.IOException
public static StandardAnnotationTarget 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 AnnotationTarget
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class AnnotationTarget
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.