public class AlphanumProperty extends DataProperty implements com.exalead.util.Checkable, java.io.Serializable
Property.Arity, Property.Tags
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENUMERATED |
static boolean |
DEFAULT_INDEX_IN_TEXT_FIELD |
boolean |
enumerated |
boolean |
indexInTextField |
java.lang.String |
queryExpansionConfig |
java.lang.String |
semanticType |
additionalMetaNames, advancedParams, dedicatedField, DEFAULT_DEDICATED_FIELD, DEFAULT_DISJUNCTIVE_REFINES, DEFAULT_FACET, DEFAULT_OVERRIDE_CLASS_EXPANSION_PARAMS, DEFAULT_RAM_BASED, DEFAULT_RETRIEVABLE, DEFAULT_SEARCHABLE, defaultValue, disjunctiveRefines, dynamicProperty, facet, overrideClassExpansionParams, ramBased, retrievable, searchable
arity, ARITY_MANY, ARITY_ONE, ARITY_ZERO_OR_ONE, comment, DEFAULT_ARITY, keyValue, label, name, tags
Constructor and Description |
---|
AlphanumProperty() |
AlphanumProperty(AlphanumProperty o)
Copy constructor
|
AlphanumProperty(java.lang.String name) |
AlphanumProperty(java.lang.String name,
java.lang.String semanticType) |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this AlphanumProperty.
|
static AlphanumProperty |
fromString(java.lang.String s)
String representation of this AlphanumProperty.
|
java.lang.String |
getQueryExpansionConfig()
Search-time query expansion config to use for this property.
This follows the 'QEC' format specification. |
java.lang.String |
getSemanticType()
Defines how the text is processed and indexed (tokenization, normalization and indexing-time semantic processing).
This value must refer to a valid !SemanticType object in the DataModel. |
boolean |
isEnumerated()
Is there a controlled and limited set of values for this property?
Enumerated properties are indexed using a specific "Value" field, which stores entire values in an optimized way. Thus, performing faceting on this kind of field is faster than on a category field. It is not possible to perform any semantic processing on value fields. |
boolean |
isIndexInTextField()
Allows users to search for matches in this property without using a prefix, by mapping the values to the
generic "text" index field, as invisible text. For example, to search for "API" in a document, enter the search query |
AlphanumProperty |
makeCopy()
Creates and returns a deep copy of this AlphanumProperty.
|
static AlphanumProperty |
readFrom(java.io.InputStream is)
Read this AlphanumProperty from an XML fragment.
|
void |
setEnumerated(boolean enumerated)
Is there a controlled and limited set of values for this property?
Enumerated properties are indexed using a specific "Value" field, which stores entire values in an optimized way. Thus, performing faceting on this kind of field is faster than on a category field. It is not possible to perform any semantic processing on value fields. |
void |
setIndexInTextField(boolean indexInTextField)
Allows users to search for matches in this property without using a prefix, by mapping the values to the
generic "text" index field, as invisible text. For example, to search for "API" in a document, enter the search query |
void |
setQueryExpansionConfig(java.lang.String queryExpansionConfig)
Search-time query expansion config to use for this property.
This follows the 'QEC' format specification. |
void |
setSemanticType(java.lang.String semanticType)
Defines how the text is processed and indexed (tokenization, normalization and indexing-time semantic processing).
This value must refer to a valid !SemanticType object in the DataModel. |
java.lang.String |
toString()
String representation of this AlphanumProperty.
|
AlphanumProperty |
withAdditionalMetaNames(java.lang.String additionalMetaNames) |
AlphanumProperty |
withAdvancedParams(AdvancedParams advancedParams) |
AlphanumProperty |
withArity(java.lang.String arity) |
AlphanumProperty |
withComment(java.lang.String comment) |
AlphanumProperty |
withDedicatedField(boolean dedicatedField) |
AlphanumProperty |
withDedicatedField(java.lang.Boolean dedicatedField) |
AlphanumProperty |
withDefaultValue(java.lang.String defaultValue) |
AlphanumProperty |
withDisjunctiveRefines(boolean disjunctiveRefines) |
AlphanumProperty |
withDisjunctiveRefines(java.lang.Boolean disjunctiveRefines) |
AlphanumProperty |
withDynamicProperty(java.lang.String dynamicProperty) |
AlphanumProperty |
withEnumerated(boolean enumerated) |
AlphanumProperty |
withEnumerated(java.lang.Boolean enumerated) |
AlphanumProperty |
withFacet(boolean facet) |
AlphanumProperty |
withFacet(java.lang.Boolean facet) |
AlphanumProperty |
withIndexInTextField(boolean indexInTextField) |
AlphanumProperty |
withIndexInTextField(java.lang.Boolean indexInTextField) |
AlphanumProperty |
withKeyValue(java.util.Collection<KeyValue> __values) |
AlphanumProperty |
withKeyValue(KeyValue... __values) |
AlphanumProperty |
withLabel(java.util.Collection<Label> __values) |
AlphanumProperty |
withLabel(Label... __values)
Labels for the internationalization of this property's name
|
AlphanumProperty |
withName(java.lang.String name) |
AlphanumProperty |
withOverrideClassExpansionParams(boolean overrideClassExpansionParams) |
AlphanumProperty |
withOverrideClassExpansionParams(java.lang.Boolean overrideClassExpansionParams) |
AlphanumProperty |
withQueryExpansionConfig(java.lang.String queryExpansionConfig) |
AlphanumProperty |
withRamBased(boolean ramBased) |
AlphanumProperty |
withRamBased(java.lang.Boolean ramBased) |
AlphanumProperty |
withRetrievable(boolean retrievable) |
AlphanumProperty |
withRetrievable(java.lang.Boolean retrievable) |
AlphanumProperty |
withSearchable(boolean searchable) |
AlphanumProperty |
withSearchable(java.lang.Boolean searchable) |
AlphanumProperty |
withSemanticType(java.lang.String semanticType) |
AlphanumProperty |
withTags(java.util.Collection<KeyValue> __values) |
AlphanumProperty |
withTags(KeyValue... __values)
User-defined tags for this property.
|
void |
writeTo(java.io.OutputStream os)
Write this AlphanumProperty as an XML fragment
|
getAdditionalMetaNames, getAdvancedParams, getDefaultValue, getDynamicProperty, isDedicatedField, isDisjunctiveRefines, isFacet, isOverrideClassExpansionParams, isRamBased, isRetrievable, isSearchable, setAdditionalMetaNames, setAdvancedParams, setDedicatedField, setDefaultValue, setDisjunctiveRefines, setDynamicProperty, setFacet, setOverrideClassExpansionParams, setRamBased, setRetrievable, setSearchable
addKeyValue, getArity, getArityAsEnum, getComment, getKeyValue, getLabel, getName, getTags, isA, isOneOf, setArity, setArity, setComment, setName, setTags, withTags
public java.lang.String semanticType
public boolean indexInTextField
public static final boolean DEFAULT_INDEX_IN_TEXT_FIELD
public java.lang.String queryExpansionConfig
public boolean enumerated
public static final boolean DEFAULT_ENUMERATED
public AlphanumProperty()
public AlphanumProperty(AlphanumProperty o)
public AlphanumProperty(java.lang.String name, java.lang.String semanticType)
public AlphanumProperty(java.lang.String name)
public AlphanumProperty withAdvancedParams(AdvancedParams advancedParams)
withAdvancedParams
in class DataProperty
public AlphanumProperty withOverrideClassExpansionParams(boolean overrideClassExpansionParams)
withOverrideClassExpansionParams
in class DataProperty
public AlphanumProperty withOverrideClassExpansionParams(java.lang.Boolean overrideClassExpansionParams)
withOverrideClassExpansionParams
in class DataProperty
public AlphanumProperty withDedicatedField(boolean dedicatedField)
withDedicatedField
in class DataProperty
public AlphanumProperty withDedicatedField(java.lang.Boolean dedicatedField)
withDedicatedField
in class DataProperty
public AlphanumProperty withDynamicProperty(java.lang.String dynamicProperty)
withDynamicProperty
in class DataProperty
public AlphanumProperty withSearchable(boolean searchable)
withSearchable
in class DataProperty
public AlphanumProperty withSearchable(java.lang.Boolean searchable)
withSearchable
in class DataProperty
public AlphanumProperty withRetrievable(boolean retrievable)
withRetrievable
in class DataProperty
public AlphanumProperty withRetrievable(java.lang.Boolean retrievable)
withRetrievable
in class DataProperty
public AlphanumProperty withRamBased(boolean ramBased)
withRamBased
in class DataProperty
public AlphanumProperty withRamBased(java.lang.Boolean ramBased)
withRamBased
in class DataProperty
public AlphanumProperty withFacet(boolean facet)
withFacet
in class DataProperty
public AlphanumProperty withFacet(java.lang.Boolean facet)
withFacet
in class DataProperty
public AlphanumProperty withDisjunctiveRefines(boolean disjunctiveRefines)
withDisjunctiveRefines
in class DataProperty
public AlphanumProperty withDisjunctiveRefines(java.lang.Boolean disjunctiveRefines)
withDisjunctiveRefines
in class DataProperty
public AlphanumProperty withDefaultValue(java.lang.String defaultValue)
withDefaultValue
in class DataProperty
public AlphanumProperty withAdditionalMetaNames(java.lang.String additionalMetaNames)
withAdditionalMetaNames
in class DataProperty
public AlphanumProperty withKeyValue(KeyValue... __values)
withKeyValue
in class DataProperty
public AlphanumProperty withKeyValue(java.util.Collection<KeyValue> __values)
withKeyValue
in class DataProperty
public AlphanumProperty withArity(java.lang.String arity)
withArity
in class DataProperty
public AlphanumProperty withName(java.lang.String name)
withName
in class DataProperty
public AlphanumProperty withComment(java.lang.String comment)
withComment
in class DataProperty
public AlphanumProperty withLabel(Label... __values)
withLabel
in class DataProperty
public AlphanumProperty withLabel(java.util.Collection<Label> __values)
withLabel
in class DataProperty
public AlphanumProperty withTags(KeyValue... __values)
withTags
in class DataProperty
public AlphanumProperty withTags(java.util.Collection<KeyValue> __values)
withTags
in class DataProperty
public void setSemanticType(java.lang.String semanticType)
public java.lang.String getSemanticType()
public AlphanumProperty withSemanticType(java.lang.String semanticType)
public void setIndexInTextField(boolean indexInTextField)
API
public boolean isIndexInTextField()
API
public AlphanumProperty withIndexInTextField(boolean indexInTextField)
public AlphanumProperty withIndexInTextField(java.lang.Boolean indexInTextField)
public void setQueryExpansionConfig(java.lang.String queryExpansionConfig)
public java.lang.String getQueryExpansionConfig()
public AlphanumProperty withQueryExpansionConfig(java.lang.String queryExpansionConfig)
public void setEnumerated(boolean enumerated)
public boolean isEnumerated()
public AlphanumProperty withEnumerated(boolean enumerated)
public AlphanumProperty withEnumerated(java.lang.Boolean enumerated)
public AlphanumProperty makeCopy()
makeCopy
in class DataProperty
public static AlphanumProperty 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 DataProperty
javax.xml.bind.JAXBException
java.io.IOException
public static AlphanumProperty 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 DataProperty
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class DataProperty
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.