Site.java
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.9.1,
// any modifications will be overwritten.
// ==============================================================
package org.apache.maven.model;
/**
* Contains the information needed for deploying websites.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class Site
implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
*
*
* A unique identifier for a deployment location.
* This is used to match the
* site to configuration in the
* <code>settings.xml</code> file, for example.
*
*
*/
private String id;
/**
* Human readable name of the deployment location.
*/
private String name;
/**
*
*
* The url of the location where website is
* deployed, in the form <code>protocol://hostname/path</code>.
* <br><b>Default value is</b>: parent value [+
* path adjustment] + (artifactId or
* <code>project.directory</code> property)
*
* .
*/
private String url;
/**
* Field locations.
*/
private java.util.Map<Object, InputLocation> locations;
//-----------/
//- Methods -/
//-----------/
/**
* Method clone.
*
* @return Site
*/
public Site clone()
{
try
{
Site copy = (Site) super.clone();
if ( copy.locations != null )
{
copy.locations = new java.util.LinkedHashMap( copy.locations );
}
return copy;
}
catch ( java.lang.Exception ex )
{
throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
+ " does not support clone()" ).initCause( ex );
}
} //-- Site clone()
/**
* Get a unique identifier for a deployment location. This is
* used to match the
* site to configuration in the
* <code>settings.xml</code> file, for example.
*
* @return String
*/
public String getId()
{
return this.id;
} //-- String getId()
/**
*
*
* @param key
* @return InputLocation
*/
public InputLocation getLocation( Object key )
{
return ( locations != null ) ? locations.get( key ) : null;
} //-- InputLocation getLocation( Object )
/**
* Get human readable name of the deployment location.
*
* @return String
*/
public String getName()
{
return this.name;
} //-- String getName()
/**
* Get the url of the location where website is deployed, in
* the form <code>protocol://hostname/path</code>.
* <br><b>Default value is</b>: parent value [+
* path adjustment] + (artifactId or
* <code>project.directory</code> property).
*
* @return String
*/
public String getUrl()
{
return this.url;
} //-- String getUrl()
/**
* Set a unique identifier for a deployment location. This is
* used to match the
* site to configuration in the
* <code>settings.xml</code> file, for example.
*
* @param id
*/
public void setId( String id )
{
this.id = id;
} //-- void setId( String )
/**
*
*
* @param key
* @param location
*/
public void setLocation( Object key, InputLocation location )
{
if ( location != null )
{
if ( this.locations == null )
{
this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
}
this.locations.put( key, location );
}
} //-- void setLocation( Object, InputLocation )
/**
* Set human readable name of the deployment location.
*
* @param name
*/
public void setName( String name )
{
this.name = name;
} //-- void setName( String )
/**
* Set the url of the location where website is deployed, in
* the form <code>protocol://hostname/path</code>.
* <br><b>Default value is</b>: parent value [+
* path adjustment] + (artifactId or
* <code>project.directory</code> property).
*
* @param url
*/
public void setUrl( String url )
{
this.url = url;
} //-- void setUrl( String )
}