org.codehaus.cargo.maven3.MergeRoot Maven / Gradle / Ivy
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.0.0,
// any modifications will be overwritten.
// ==============================================================
package org.codehaus.cargo.maven3;
/**
* Root element of the merge xml.
*
* @version $Revision$ $Date$
*/
public class MergeRoot
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field wars.
*/
private java.util.List/**/ wars;
/**
* Field merges.
*/
private java.util.List/**/ merges;
/**
* Field webXml.
*/
private WebXml webXml;
/**
* Field modelEncoding.
*/
private String modelEncoding = "UTF-8";
//-----------/
//- Methods -/
//-----------/
/**
* Method addMerge.
*
* @param merge a merge object.
*/
public void addMerge( Merge merge )
{
getMerges().add( merge );
} //-- void addMerge( Merge )
/**
* Method addWar.
*
* @param string a string object.
*/
public void addWar( String string )
{
getWars().add( string );
} //-- void addWar( String )
/**
* Method getMerges.
*
* @return List
*/
public java.util.List/**/ getMerges()
{
if ( this.merges == null )
{
this.merges = new java.util.ArrayList/**/();
}
return this.merges;
} //-- java.util.List/**/ getMerges()
/**
* Get the modelEncoding field.
*
* @return String
*/
public String getModelEncoding()
{
return this.modelEncoding;
} //-- String getModelEncoding()
/**
* Method getWars.
*
* @return List
*/
public java.util.List/**/ getWars()
{
if ( this.wars == null )
{
this.wars = new java.util.ArrayList/**/();
}
return this.wars;
} //-- java.util.List/**/ getWars()
/**
* Get the webXml field.
*
* @return WebXml
*/
public WebXml getWebXml()
{
return this.webXml;
} //-- WebXml getWebXml()
/**
* Method removeMerge.
*
* @param merge a merge object.
*/
public void removeMerge( Merge merge )
{
getMerges().remove( merge );
} //-- void removeMerge( Merge )
/**
* Method removeWar.
*
* @param string a string object.
*/
public void removeWar( String string )
{
getWars().remove( string );
} //-- void removeWar( String )
/**
* Set merge settings.
*
* @param merges a merges object.
*/
public void setMerges( java.util.List/**/ merges )
{
this.merges = merges;
} //-- void setMerges( java.util.List )
/**
* Set the modelEncoding field.
*
* @param modelEncoding a modelEncoding object.
*/
public void setModelEncoding( String modelEncoding )
{
this.modelEncoding = modelEncoding;
} //-- void setModelEncoding( String )
/**
* Set war Files to merge.
*
* @param wars a wars object.
*/
public void setWars( java.util.List/**/ wars )
{
this.wars = wars;
} //-- void setWars( java.util.List )
/**
* Set the webXml field.
*
* @param webXml a webXml object.
*/
public void setWebXml( WebXml webXml )
{
this.webXml = webXml;
} //-- void setWebXml( WebXml )
}