All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.cfg.PropertyDescriptor Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * Hibernate Search, full-text search for your domain model
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.search.cfg;

import java.lang.annotation.ElementType;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Emmanuel Bernard
 */
public class PropertyDescriptor {

	private final String name;
	private final Collection> fields = new ArrayList>();
	private final Collection> numericFields = new ArrayList>();
	private final Collection> sortableFields = new ArrayList>();
	private Map dateBridge = new HashMap();
	private Map calendarBridge = new HashMap();
	private Map indexEmbedded;
	private Map containedIn;

	private Map documentId;
	private Map analyzerDiscriminator;
	private Map dynamicBoost;
	private Map fieldBridge;
	private Map spatial;
	private Map latitude;
	private Map longitude;

	public PropertyDescriptor(String name, ElementType type) {
		this.name = name;
	}

	public void setDocumentId(Map documentId) {
		this.documentId = documentId;
	}

	public void addField(Map field) {
		fields.add( field );
	}

	public void addNumericField(Map numericField) {
		numericFields.add( numericField );
	}

	public void addSortableField(Map sortableField) {
		sortableFields.add( sortableField );
	}

	public void setDateBridge(Map dateBridge) {
		this.dateBridge = dateBridge;
	}
	public void setCalendarBridge(Map calendarBridge) {
		this.calendarBridge = calendarBridge;
	}

	public String getName() {
		return name;
	}

	public Collection> getFields() {
		return fields;
	}

	public Collection> getNumericFields() {
		return numericFields;
	}

	public Collection> getSortableFields() {
		return sortableFields;
	}

	public Map getDocumentId() {
		return documentId;
	}

	public Map getAnalyzerDiscriminator() {
		return analyzerDiscriminator;
	}


	public Map getDateBridge() {
		return dateBridge;
	}
	public Map getCalendarBridge() {
		return calendarBridge;
	}


	public void setAnalyzerDiscriminator(Map analyzerDiscriminator) {
		this.analyzerDiscriminator = analyzerDiscriminator;
	}

	public Map getIndexEmbedded() {
		return indexEmbedded;
	}

	public void setIndexEmbedded(Map indexEmbedded) {
		this.indexEmbedded = indexEmbedded;
	}
	public Map getContainedIn() {
		return containedIn;
	}

	public void setContainedIn(Map containedIn) {
		this.containedIn = containedIn;
	}

	public void setDynamicBoost(Map dynamicBoostAnn) {
		this.dynamicBoost = dynamicBoostAnn;
	}

	public Map getDynamicBoost() {
		return this.dynamicBoost;
	}

	public Map getFieldBridge() {
		return fieldBridge;
	}

	public void setFieldBridge(Map fieldBridge) {
		this.fieldBridge = fieldBridge;
	}

	public Map getSpatial() {
		return spatial;
	}

	public void setSpatial(Map spatial) {
		this.spatial = spatial;
	}

	public Map getLatitude() {
		return latitude;
	}

	public void setLatitude(Map latitude) {
		this.latitude = latitude;
	}

	public Map getLongitude() {
		return longitude;
	}

	public void setLongitude(Map longitude) {
		this.longitude = longitude;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy