com.sitewhere.microservice.api.search.SearchProvider Maven / Gradle / Ivy
/*
* Copyright (c) SiteWhere, LLC. All rights reserved. http://www.sitewhere.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package com.sitewhere.microservice.api.search;
/**
* Implementation of {@link ISearchProvider} used for marshaling.
*/
public class SearchProvider {
/** Provider id */
private String id;
/** Provider name */
private String name;
/*
* (non-Javadoc)
*
* @see com.sitewhere.spi.search.external.ISearchProvider#getId()
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/*
* (non-Javadoc)
*
* @see com.sitewhere.spi.search.external.ISearchProvider#getName()
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Create copy of an {@link ISearchProvider} for marshaling.
*
* @param source
* @return
*/
public static SearchProvider copy(ISearchProvider source) {
SearchProvider provider = new SearchProvider();
provider.setId(source.getId());
provider.setName(source.getName());
return provider;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy