org.apache.maven.plugins.assembly.model.GroupVersionAlignment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-assembly-plugin Show documentation
Show all versions of maven-assembly-plugin Show documentation
A Maven plugin to create archives of your project's sources, classes, dependencies etc. from flexible assembly descriptors.
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.0.0,
// any modifications will be overwritten.
// ==============================================================
package org.apache.maven.plugins.assembly.model;
/**
*
* Allows a group of artifacts to be aligned to a specified
* version.
*
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class GroupVersionAlignment
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
*
* The groupId of the artifacts for which you want
* to align the
* versions.
*
*/
private String id;
/**
*
* The version you want to align this group to.
*
*/
private String version;
/**
* Field excludes.
*/
private java.util.List excludes;
//-----------/
//- Methods -/
//-----------/
/**
* Method addExclude.
*
* @param string a string object.
*/
public void addExclude( String string )
{
getExcludes().add( string );
} //-- void addExclude( String )
/**
* Method getExcludes.
*
* @return List
*/
public java.util.List getExcludes()
{
if ( this.excludes == null )
{
this.excludes = new java.util.ArrayList();
}
return this.excludes;
} //-- java.util.List getExcludes()
/**
* Get the groupId of the artifacts for which you want to align
* the
* versions.
*
* @return String
*/
public String getId()
{
return this.id;
} //-- String getId()
/**
* Get the version you want to align this group to.
*
* @return String
*/
public String getVersion()
{
return this.version;
} //-- String getVersion()
/**
* Method removeExclude.
*
* @param string a string object.
*/
public void removeExclude( String string )
{
getExcludes().remove( string );
} //-- void removeExclude( String )
/**
* Set when <exclude> subelements are present, they
* define the
* artifactIds of the artifacts to exclude. If none
* is present, then
* <excludes> represents no exclusions. An
* exclude is specified
* by providing one or more of <exclude>
* subelements.
*
* @param excludes a excludes object.
*/
public void setExcludes( java.util.List excludes )
{
this.excludes = excludes;
} //-- void setExcludes( java.util.List )
/**
* Set the groupId of the artifacts for which you want to align
* the
* versions.
*
* @param id a id object.
*/
public void setId( String id )
{
this.id = id;
} //-- void setId( String )
/**
* Set the version you want to align this group to.
*
* @param version a version object.
*/
public void setVersion( String version )
{
this.version = version;
} //-- void setVersion( String )
}