Record Class Extraction.ClausesVariable
java.lang.Object
java.lang.Record
org.ametys.plugins.extraction.execution.Extraction.ClausesVariable
- Record Components:
name- the name of the variabletype- the type of the variable (SOLR_REQUEST or SELECT_CONTENTS)contentTypeIds- the content type identifiers to restrict the contents to select. Only one content type should be provided for SELECT_CONTENT type of variablessolrRequest- the solr request use to limit contents to select
- Enclosing class:
- Extraction
public static record Extraction.ClausesVariable(String name, Extraction.ClausesVariableType type, List<String> contentTypeIds, Optional<String> solrRequest)
extends Record
Stores a clauses variable data
-
Constructor Summary
ConstructorsConstructorDescriptionClausesVariable(String name, Extraction.ClausesVariableType type, List<String> contentTypeIds, Optional<String> solrRequest) Creates an instance of aClausesVariablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTypeIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thesolrRequestrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ClausesVariable
public ClausesVariable(String name, Extraction.ClausesVariableType type, List<String> contentTypeIds, Optional<String> solrRequest) Creates an instance of aClausesVariablerecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentcontentTypeIds- the value for thecontentTypeIdsrecord componentsolrRequest- the value for thesolrRequestrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
contentTypeIds
Returns the value of thecontentTypeIdsrecord component.- Returns:
- the value of the
contentTypeIdsrecord component
-
solrRequest
Returns the value of thesolrRequestrecord component.- Returns:
- the value of the
solrRequestrecord component
-