
org.codehaus.mojo.nbm.model.NbmResource Maven / Gradle / Ivy
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.5 on 2015-08-23 20:39:16,
any modifications will be overwritten.
==============================================================
*/
package org.codehaus.mojo.nbm.model;
/**
* Class NbmResource.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class NbmResource
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* The base directory, all paths within the nbm file will be
* the same as paths within the base directory.
*/
private String baseDirectory;
/**
* A relative path to be added to cluster root where the files
* will be copied to.
*/
private String relativeClusterPath;
/**
* Field includes.
*/
private java.util.List includes;
/**
* Field excludes.
*/
private java.util.List excludes;
//-----------/
//- Methods -/
//-----------/
/**
* Method addExclude.
*
* @param string
*/
public void addExclude( String string )
{
getExcludes().add( string );
} //-- void addExclude( String )
/**
* Method addInclude.
*
* @param string
*/
public void addInclude( String string )
{
getIncludes().add( string );
} //-- void addInclude( String )
/**
* Get the base directory, all paths within the nbm file will
* be the same as paths within the base directory.
*
* @return String
*/
public String getBaseDirectory()
{
return this.baseDirectory;
} //-- String getBaseDirectory()
/**
* 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()
/**
* Method getIncludes.
*
* @return List
*/
public java.util.List getIncludes()
{
if ( this.includes == null )
{
this.includes = new java.util.ArrayList();
}
return this.includes;
} //-- java.util.List getIncludes()
/**
* Get a relative path to be added to cluster root where the
* files will be copied to.
*
* @return String
*/
public String getRelativeClusterPath()
{
return this.relativeClusterPath;
} //-- String getRelativeClusterPath()
/**
* Method removeExclude.
*
* @param string
*/
public void removeExclude( String string )
{
getExcludes().remove( string );
} //-- void removeExclude( String )
/**
* Method removeInclude.
*
* @param string
*/
public void removeInclude( String string )
{
getIncludes().remove( string );
} //-- void removeInclude( String )
/**
* Set the base directory, all paths within the nbm file will
* be the same as paths within the base directory.
*
* @param baseDirectory
*/
public void setBaseDirectory( String baseDirectory )
{
this.baseDirectory = baseDirectory;
} //-- void setBaseDirectory( String )
/**
* Set exclude pattern, what files within the basedir shall not
* be included.
*
* @param excludes
*/
public void setExcludes( java.util.List excludes )
{
this.excludes = excludes;
} //-- void setExcludes( java.util.List )
/**
* Set include pattern, what shall be included in the nbm.
*
* @param includes
*/
public void setIncludes( java.util.List includes )
{
this.includes = includes;
} //-- void setIncludes( java.util.List )
/**
* Set a relative path to be added to cluster root where the
* files will be copied to.
*
* @param relativeClusterPath
*/
public void setRelativeClusterPath( String relativeClusterPath )
{
this.relativeClusterPath = relativeClusterPath;
} //-- void setRelativeClusterPath( String )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy