Class CopyFieldDefinition
- java.lang.Object
-
- org.ametys.cms.search.solr.schema.CopyFieldDefinition
-
- All Implemented Interfaces:
SchemaDefinition
public class CopyFieldDefinition extends Object implements SchemaDefinition
Represents a copy field definition in a solr schema.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
_destination
The destination field.protected String
_source
The source field.
-
Constructor Summary
Constructors Constructor Description CopyFieldDefinition(String source, String destination)
Build a copy field definition.CopyFieldDefinition(Map<String,Object> attributes)
Build a copy field definition from a map of attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDestination()
Get the destination field.String
getSource()
Get the source field.void
setDestination(String destination)
Set the destination field.void
setSource(String source)
Set the source field.
-
-
-
Field Detail
-
_destination
protected String _destination
The destination field.
-
-
Constructor Detail
-
CopyFieldDefinition
public CopyFieldDefinition(String source, String destination)
Build a copy field definition.- Parameters:
source
- The source field.destination
- The destination field.
-
CopyFieldDefinition
public CopyFieldDefinition(Map<String,Object> attributes)
Build a copy field definition from a map of attributes.- Parameters:
attributes
- the Map of attributes.
-
-
Method Detail
-
setSource
public void setSource(String source)
Set the source field.- Parameters:
source
- the source field.
-
getDestination
public String getDestination()
Get the destination field.- Returns:
- The destination field.
-
setDestination
public void setDestination(String destination)
Set the destination field.- Parameters:
destination
- the destination field.
-
-