blob: 94a2b935c2409d0937ca96a8748ff791ab73e928 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 Task top Technologies and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.discovery.core.model;
/**
* groups provide a way to anchor connectors in a grouping with other like entries.
*
* @author David Green
*/
public class Group {
protected String id;
protected ConnectorCategory connectorCategory;
public Group() {
}
/**
* An identifier that identifies the group. Must be unique for a particular connectorCategory.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ConnectorCategory getConnectorCategory() {
return connectorCategory;
}
public void setConnectorCategory(ConnectorCategory connectorCategory) {
this.connectorCategory = connectorCategory;
}
public void validate() throws ValidationException {
if (id == null || id.length() == 0) {
throw new ValidationException(Messages.Group_must_specify_group_id);
}
}
}