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
ConstructorDescriptionClausesVariable
(String name, Extraction.ClausesVariableType type, List<String> contentTypeIds, Optional<String> solrRequest) Creates an instance of aClausesVariable
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTypeIds
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.Returns the value of thesolrRequest
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
ClausesVariable
public ClausesVariable(String name, Extraction.ClausesVariableType type, List<String> contentTypeIds, Optional<String> solrRequest) Creates an instance of aClausesVariable
record class.- Parameters:
name
- the value for thename
record componenttype
- the value for thetype
record componentcontentTypeIds
- the value for thecontentTypeIds
record componentsolrRequest
- the value for thesolrRequest
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
contentTypeIds
Returns the value of thecontentTypeIds
record component.- Returns:
- the value of the
contentTypeIds
record component
-
solrRequest
Returns the value of thesolrRequest
record component.- Returns:
- the value of the
solrRequest
record component
-