org.apache.maven.model.Notifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.0.1 on 2009-08-06 15:13:09,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.model;
/**
* Configures one method for notifying users/developers when a
* build breaks.
*
* @version $Revision$ $Date$
*/
public class Notifier
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* The mechanism used to deliver notifications.
*/
private String type = "mail";
/**
* Whether to send notifications on error.
*/
private boolean sendOnError = true;
/**
* Whether to send notifications on failure.
*/
private boolean sendOnFailure = true;
/**
* Whether to send notifications on success.
*/
private boolean sendOnSuccess = true;
/**
* Whether to send notifications on warning.
*/
private boolean sendOnWarning = true;
/**
*
*
* Deprecated. Where to send the
* notification to - eg email address.
*
*
*/
private String address;
/**
* Field configuration.
*/
private java.util.Properties configuration;
//-----------/
//- Methods -/
//-----------/
/**
* Method addConfiguration.
*
* @param key
* @param value
*/
public void addConfiguration( String key, String value )
{
getConfiguration().put( key, value );
} //-- void addConfiguration( String, String )
/**
* Get Deprecated. Where to send the notification to -
* eg email address.
*
* @return String
*/
public String getAddress()
{
return this.address;
} //-- String getAddress()
/**
* Method getConfiguration.
*
* @return Properties
*/
public java.util.Properties getConfiguration()
{
if ( this.configuration == null )
{
this.configuration = new java.util.Properties();
}
return this.configuration;
} //-- java.util.Properties getConfiguration()
/**
* Get the mechanism used to deliver notifications.
*
* @return String
*/
public String getType()
{
return this.type;
} //-- String getType()
/**
* Get whether to send notifications on error.
*
* @return boolean
*/
public boolean isSendOnError()
{
return this.sendOnError;
} //-- boolean isSendOnError()
/**
* Get whether to send notifications on failure.
*
* @return boolean
*/
public boolean isSendOnFailure()
{
return this.sendOnFailure;
} //-- boolean isSendOnFailure()
/**
* Get whether to send notifications on success.
*
* @return boolean
*/
public boolean isSendOnSuccess()
{
return this.sendOnSuccess;
} //-- boolean isSendOnSuccess()
/**
* Get whether to send notifications on warning.
*
* @return boolean
*/
public boolean isSendOnWarning()
{
return this.sendOnWarning;
} //-- boolean isSendOnWarning()
/**
* Set Deprecated. Where to send the notification to -
* eg email address.
*
* @param address
*/
public void setAddress( String address )
{
this.address = address;
} //-- void setAddress( String )
/**
* Set extended configuration specific to this notifier goes
* here.
*
* @param configuration
*/
public void setConfiguration( java.util.Properties configuration )
{
this.configuration = configuration;
} //-- void setConfiguration( java.util.Properties )
/**
* Set whether to send notifications on error.
*
* @param sendOnError
*/
public void setSendOnError( boolean sendOnError )
{
this.sendOnError = sendOnError;
} //-- void setSendOnError( boolean )
/**
* Set whether to send notifications on failure.
*
* @param sendOnFailure
*/
public void setSendOnFailure( boolean sendOnFailure )
{
this.sendOnFailure = sendOnFailure;
} //-- void setSendOnFailure( boolean )
/**
* Set whether to send notifications on success.
*
* @param sendOnSuccess
*/
public void setSendOnSuccess( boolean sendOnSuccess )
{
this.sendOnSuccess = sendOnSuccess;
} //-- void setSendOnSuccess( boolean )
/**
* Set whether to send notifications on warning.
*
* @param sendOnWarning
*/
public void setSendOnWarning( boolean sendOnWarning )
{
this.sendOnWarning = sendOnWarning;
} //-- void setSendOnWarning( boolean )
/**
* Set the mechanism used to deliver notifications.
*
* @param type
*/
public void setType( String type )
{
this.type = type;
} //-- void setType( String )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy