public class MetaInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LUCENE_INDEXTYPE_FULLTEXT
Simple lucene fulltext indexing
|
static java.lang.String |
LUCENE_INDEXTYPE_KEYWORD
Lucene keyword indexing that indexes the exact content
|
static java.lang.String |
LUCENE_INDEXTYPE_NOINDEX
Field should not be added to lucene index
|
Constructor and Description |
---|
MetaInfo(java.lang.String name,
java.lang.Class<?> dataType,
java.lang.Object defaultValue)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Object> |
getAllowedValues()
Returns the allowed values for this metadata if they are restricted
|
java.lang.Class<?> |
getDataType()
Returns the expected data type
|
java.lang.Object |
getDefaultValue()
Returns the default value for that metadata, if defined
|
java.lang.Class<?> |
getDefiningClass()
Returns the class of the document defining this metadata field
|
boolean |
getLuceneAddToAllContent()
Returns if the contents of this metadata field is added to the global lucene fulltext index field for field-unspecific searches
|
float |
getLuceneBoost()
Returns the boost value that this metadata should have in the lucene index
|
java.lang.String |
getLuceneIndexType()
Returns the type of lucene indexing that should be used for this metadata field.
|
double |
getMinCsVersion()
Returns the minimum version of OpenWGA content stores that features this metadata field
|
java.lang.String |
getName()
Returns the metadata name
|
java.util.Set<java.lang.String> |
getSynonyms()
Returns metadata synonyms usable in WGAPI or WebTML
|
boolean |
isCacheable()
Returns if the data if this metadata field may be cached by WGAPI cache
|
boolean |
isExtdataInCsVersion(double csVersion)
Returns if the metadata field is moved to an extension data field since a given content store version
|
boolean |
isLowerCase()
Returns if the contents of this metadata field should always be stored lowercase
|
boolean |
isLuceneSpecialTreatment()
Returns if te lucene indexer needs some special treatment when indexing this metadata field
|
boolean |
isMultiple()
Returns if the metadata field hosts a list of values
|
public static final java.lang.String LUCENE_INDEXTYPE_FULLTEXT
public static final java.lang.String LUCENE_INDEXTYPE_KEYWORD
public static final java.lang.String LUCENE_INDEXTYPE_NOINDEX
public MetaInfo(java.lang.String name, java.lang.Class<?> dataType, java.lang.Object defaultValue)
name
- dataType
- defaultValue
- public java.lang.Class<?> getDataType()
public java.lang.Object getDefaultValue()
public boolean getLuceneAddToAllContent()
public float getLuceneBoost()
public java.lang.String getLuceneIndexType()
public boolean isMultiple()
public java.lang.String getName()
public boolean isLowerCase()
public java.util.Set<java.lang.String> getSynonyms()
public boolean isLuceneSpecialTreatment()
public java.util.Set<java.lang.Object> getAllowedValues()
public double getMinCsVersion()
public boolean isExtdataInCsVersion(double csVersion)
public boolean isCacheable()
public java.lang.Class<?> getDefiningClass()