blob: 114cf94b8db012d49b83805dbf28da5a51bccbaf [file] [log] [blame]
/*
* 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.
*/
package org.apache.servicemix.maven.plugin.jbi;
/**
* The dependency information is a simple value object to help with passing
* around information on dependencies used to help in the creation of the jbi
* descriptors
*
*/
public class DependencyInformation {
/**
* Artifact type for a JBI Shared Library
*/
public static final String SHARED_LIBRARY_TYPE = "jbi-shared-library";
private String filename;
private String component;
private String description;
private String name;
private String version;
private String type;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getFilename() {
return filename;
}
public String getComponent() {
return component;
}
public String getDescription() {
return description;
}
public String getName() {
return name;
}
public String getVersion() {
return version;
}
public void setFilename(String artifactZip) {
this.filename = artifactZip;
}
public void setComponent(String component) {
this.component = component;
}
public void setDescription(String description) {
this.description = description;
}
public void setName(String name) {
this.name = name;
}
public void setVersion(String version) {
this.version = version;
}
/**
* Is this dependency a JBI Shared Library?
*/
public boolean isSharedLibrary() {
return SHARED_LIBRARY_TYPE.equals(type);
}
}