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

org.scijava.maven.plugin.enforcer.Dependency Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
/*
 * #%L
 * A plugin for managing SciJava-based projects.
 * %%
 * Copyright (C) 2014 - 2015 Board of Regents of the University of
 * Wisconsin-Madison.
 * %%
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 * #L%
 */

package org.scijava.maven.plugin.enforcer;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/**
 * 

* Dependency class. *

* * @version $Id: $ */ public class Dependency { private String groupId; private String artifactId; private String classifier; private String type; /** * List of classes to ignore. Wildcard at the end accepted */ private String[] ignoreClasses; /** *

* Getter for the field groupId. *

* * @return a {@link java.lang.String} object. */ public String getGroupId() { return groupId; } /** *

* Setter for the field groupId. *

* * @param groupId a {@link java.lang.String} object. */ public void setGroupId(final String groupId) { this.groupId = groupId; } /** *

* Getter for the field artifactId. *

* * @return a {@link java.lang.String} object. */ public String getArtifactId() { return artifactId; } /** *

* Setter for the field artifactId. *

* * @param artifactId a {@link java.lang.String} object. */ public void setArtifactId(final String artifactId) { this.artifactId = artifactId; } /** *

* Getter for the field classifier. *

* * @return a {@link java.lang.String} object. */ public String getClassifier() { return classifier; } /** *

* Setter for the field classifier. *

* * @param classifier a {@link java.lang.String} object. */ public void setClassifier(final String classifier) { this.classifier = classifier; } /** *

* Getter for the field type. *

* * @return a {@link java.lang.String} object. */ public String getType() { return type; } /** *

* Setter for the field type. *

* * @param type a {@link java.lang.String} object. */ public void setType(final String type) { this.type = type; } /** *

* Getter for the field ignoreClasses. *

* * @return an array of {@link java.lang.String} objects. */ public String[] getIgnoreClasses() { return ignoreClasses; } /** *

* Setter for the field ignoreClasses. *

* * @param ignoreClasses an array of {@link java.lang.String} objects. */ public void setIgnoreClasses(final String[] ignoreClasses) { this.ignoreClasses = ignoreClasses; } /** {@inheritDoc} */ @Override public String toString() { final StringBuffer sb = new StringBuffer(); sb.append(groupId).append(':').append(artifactId).append(':').append(type); if (classifier != null) { sb.append(':').append(classifier); } return sb.toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy