public class FacetDesc
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.util.List<com.exalead.search.v30.AggregationFunction> |
aggregationFunction |
java.lang.String |
dataModelClass |
java.lang.String |
dataModelProperty |
static int |
DEFAULT_DIMENSIONS |
static boolean |
DEFAULT_REFINABLE |
static boolean |
DEFAULT_TREE_REPRESENTATION |
int |
dimensions |
java.lang.String |
id |
java.lang.String |
referencesFacets |
boolean |
refinable |
java.lang.String |
refinementPolicy |
boolean |
treeRepresentation |
java.lang.String |
type |
java.lang.String |
virtualRoot |
Constructor and Description |
---|
FacetDesc() |
FacetDesc(FacetDesc o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this FacetDesc.
|
static FacetDesc |
fromString(java.lang.String s)
String representation of this FacetDesc.
|
java.util.List<com.exalead.search.v30.AggregationFunction> |
getAggregationFunction() |
java.lang.String |
getDataModelClass()
If this facet is defined by a data model, the class in which it's valid.
|
java.lang.String |
getDataModelProperty()
If this facet is defined by a data model, the class property in which it's valid.
|
int |
getDimensions()
Number of dimensions in this facet
|
java.lang.String |
getId() |
java.lang.String |
getReferencesFacets()
List of facets that this facet references
|
java.lang.String |
getRefinementPolicy() |
java.lang.String |
getType()
One of "category", "numerical" or "matrix"
|
java.lang.String |
getVirtualRoot()
Virtual root path of the facet.
|
boolean |
isRefinable()
Is the facet refinable?
|
boolean |
isTreeRepresentation()
Has the facet a tree representation?
|
FacetDesc |
makeCopy()
Creates and returns a deep copy of this FacetDesc.
|
static FacetDesc |
readFrom(java.io.InputStream is)
Read this FacetDesc from an XML fragment.
|
void |
setDataModelClass(java.lang.String dataModelClass)
If this facet is defined by a data model, the class in which it's valid.
|
void |
setDataModelProperty(java.lang.String dataModelProperty)
If this facet is defined by a data model, the class property in which it's valid.
|
void |
setDimensions(int dimensions)
Number of dimensions in this facet
|
void |
setId(java.lang.String id) |
void |
setReferencesFacets(java.lang.String referencesFacets)
List of facets that this facet references
|
void |
setRefinable(boolean refinable)
Is the facet refinable?
|
void |
setRefinementPolicy(java.lang.String refinementPolicy) |
void |
setTreeRepresentation(boolean treeRepresentation)
Has the facet a tree representation?
|
void |
setType(java.lang.String type)
One of "category", "numerical" or "matrix"
|
void |
setVirtualRoot(java.lang.String virtualRoot)
Virtual root path of the facet.
|
java.lang.String |
toString()
String representation of this FacetDesc.
|
FacetDesc |
withAggregationFunction(com.exalead.search.v30.AggregationFunction... __values) |
FacetDesc |
withAggregationFunction(java.util.Collection<com.exalead.search.v30.AggregationFunction> __values) |
FacetDesc |
withDataModelClass(java.lang.String dataModelClass) |
FacetDesc |
withDataModelProperty(java.lang.String dataModelProperty) |
FacetDesc |
withDimensions(int dimensions) |
FacetDesc |
withDimensions(java.lang.Integer dimensions) |
FacetDesc |
withId(java.lang.String id) |
FacetDesc |
withReferencesFacets(java.lang.String referencesFacets) |
FacetDesc |
withRefinable(boolean refinable) |
FacetDesc |
withRefinable(java.lang.Boolean refinable) |
FacetDesc |
withRefinementPolicy(java.lang.String refinementPolicy) |
FacetDesc |
withTreeRepresentation(boolean treeRepresentation) |
FacetDesc |
withTreeRepresentation(java.lang.Boolean treeRepresentation) |
FacetDesc |
withType(java.lang.String type) |
FacetDesc |
withVirtualRoot(java.lang.String virtualRoot) |
void |
writeTo(java.io.OutputStream os)
Write this FacetDesc as an XML fragment
|
public java.lang.String id
public java.lang.String virtualRoot
public java.lang.String dataModelClass
public java.lang.String dataModelProperty
public java.lang.String type
public java.util.List<com.exalead.search.v30.AggregationFunction> aggregationFunction
public boolean refinable
public static final boolean DEFAULT_REFINABLE
public boolean treeRepresentation
public static final boolean DEFAULT_TREE_REPRESENTATION
public java.lang.String refinementPolicy
public int dimensions
public static final int DEFAULT_DIMENSIONS
public java.lang.String referencesFacets
public FacetDesc()
public FacetDesc(FacetDesc o)
public void setId(java.lang.String id)
public java.lang.String getId()
public FacetDesc withId(java.lang.String id)
public void setVirtualRoot(java.lang.String virtualRoot)
public java.lang.String getVirtualRoot()
public FacetDesc withVirtualRoot(java.lang.String virtualRoot)
public void setDataModelClass(java.lang.String dataModelClass)
public java.lang.String getDataModelClass()
public FacetDesc withDataModelClass(java.lang.String dataModelClass)
public void setDataModelProperty(java.lang.String dataModelProperty)
public java.lang.String getDataModelProperty()
public FacetDesc withDataModelProperty(java.lang.String dataModelProperty)
public void setType(java.lang.String type)
public java.lang.String getType()
public FacetDesc withType(java.lang.String type)
public java.util.List<com.exalead.search.v30.AggregationFunction> getAggregationFunction()
public FacetDesc withAggregationFunction(com.exalead.search.v30.AggregationFunction... __values)
public FacetDesc withAggregationFunction(java.util.Collection<com.exalead.search.v30.AggregationFunction> __values)
public void setRefinable(boolean refinable)
public boolean isRefinable()
public FacetDesc withRefinable(boolean refinable)
public FacetDesc withRefinable(java.lang.Boolean refinable)
public void setTreeRepresentation(boolean treeRepresentation)
public boolean isTreeRepresentation()
public FacetDesc withTreeRepresentation(boolean treeRepresentation)
public FacetDesc withTreeRepresentation(java.lang.Boolean treeRepresentation)
public void setRefinementPolicy(java.lang.String refinementPolicy)
public java.lang.String getRefinementPolicy()
public FacetDesc withRefinementPolicy(java.lang.String refinementPolicy)
public void setDimensions(int dimensions)
public int getDimensions()
public FacetDesc withDimensions(int dimensions)
public FacetDesc withDimensions(java.lang.Integer dimensions)
public void setReferencesFacets(java.lang.String referencesFacets)
public java.lang.String getReferencesFacets()
public FacetDesc withReferencesFacets(java.lang.String referencesFacets)
public FacetDesc makeCopy()
public static FacetDesc 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
javax.xml.bind.JAXBException
java.io.IOException
public static FacetDesc 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 java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.