blob: 688a356c924ee79f9bb33e1d2d6aa681c6ff4a4b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008-2010 Sonatype, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.m2e.scm;
/**
* An SCM wrapper for tags
*
* @author Eugene Kuleshov
*/
public class ScmTag {
public static enum Type {
HEAD, TAG, BRANCH, DATE;
}
private final String name;
private final Type type;
public ScmTag(String name) {
this(name, null);
}
public ScmTag(String name, Type type) {
this.name = name;
this.type = type;
}
/**
* Returns tag name
*/
public String getName() {
return this.name;
}
/**
* Returns tag type
*/
public Type getType() {
return this.type;
}
}