Class Facet
- java.lang.Object
-
- fr.gouv.vitam.common.database.builder.facet.Facet
-
- Direct Known Subclasses:
DateRangeFacet
,FiltersFacet
,TermsFacet
public class Facet extends java.lang.Object
Facet component
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.node.ObjectNode
currentFacet
protected BuilderToken.FACET
currentTokenFACET
-
Constructor Summary
Constructors Constructor Description Facet(java.lang.String name)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkStringParameterValue(java.lang.String param, java.lang.String value)
Check if parameter is validcom.fasterxml.jackson.databind.node.ObjectNode
getCurrentFacet()
Retrieve the current facetBuilderToken.FACET
getCurrentTokenFACET()
java.lang.String
getName()
void
setName(java.lang.String name)
java.lang.String
toString()
-
-
-
Field Detail
-
currentFacet
protected com.fasterxml.jackson.databind.node.ObjectNode currentFacet
-
currentTokenFACET
protected BuilderToken.FACET currentTokenFACET
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- the name
-
setName
public void setName(java.lang.String name)
- Parameters:
name
- the name to set
-
getCurrentTokenFACET
public BuilderToken.FACET getCurrentTokenFACET()
- Returns:
- FACET token
-
getCurrentFacet
public com.fasterxml.jackson.databind.node.ObjectNode getCurrentFacet()
Retrieve the current facet- Returns:
- facet as an ObjectNode
-
checkStringParameterValue
protected void checkStringParameterValue(java.lang.String param, java.lang.String value) throws InvalidCreateOperationException
Check if parameter is valid- Parameters:
param
- parameter namevalue
- parameter value- Throws:
InvalidCreateOperationException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-