// Path: me.gladwell.eclipse.m2e.android/src/main/java/me/gladwell/eclipse/m2e/android/project/JaywayMavenAndroidProject.java
// public static final String ANDROID_LIBRARY_PACKAGE_TYPE = "apklib";


import static me.gladwell.eclipse.m2e.android.project.JaywayMavenAndroidProject.ANDROID_LIBRARY_PACKAGE_TYPE;
import org.apache.maven.artifact.Artifact;
/*******************************************************************************
 * Copyright (c) 2012 Ricardo Gladwell
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/

package me.gladwell.eclipse.m2e.android.project;



public class MavenDependency implements Dependency {

    private Artifact artifact;

    public MavenDependency(Artifact artifact) {
        super();
        this.artifact = artifact;
    }

    public String getName() {
        return artifact.getArtifactId();
    }

    public String getGroup() {
        return artifact.getGroupId();
    }

    public String getVersion() {
        return artifact.getVersion();
    }

    public boolean isLibrary() {
// Path: me.gladwell.eclipse.m2e.android/src/main/java/me/gladwell/eclipse/m2e/android/project/JaywayMavenAndroidProject.java
// public static final String ANDROID_LIBRARY_PACKAGE_TYPE = "apklib";


// Path: me.gladwell.eclipse.m2e.android/src/main/java/me/gladwell/eclipse/m2e/android/project/MavenDependency.java
import static me.gladwell.eclipse.m2e.android.project.JaywayMavenAndroidProject.ANDROID_LIBRARY_PACKAGE_TYPE;
import org.apache.maven.artifact.Artifact;

/*******************************************************************************
 * Copyright (c) 2012 Ricardo Gladwell
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/

package me.gladwell.eclipse.m2e.android.project;



public class MavenDependency implements Dependency {

    private Artifact artifact;

    public MavenDependency(Artifact artifact) {
        super();
        this.artifact = artifact;
    }

    public String getName() {
        return artifact.getArtifactId();
    }

    public String getGroup() {
        return artifact.getGroupId();
    }

    public String getVersion() {
        return artifact.getVersion();
    }

    public boolean isLibrary() {
        return artifact.getType().equals(ANDROID_LIBRARY_PACKAGE_TYPE);