org.apache.archiva.model.Plugin Maven / Gradle / Ivy
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.7,
// any modifications will be overwritten.
// ==============================================================
package org.apache.archiva.model;
/**
* The Plugin.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class Plugin
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
*
* The prefix for a plugin
* .
*/
private String prefix;
/**
*
* The artifactId for a plugin
* .
*/
private String artifactId;
/**
*
* The name for a plugin
* .
*/
private String name;
//-----------/
//- Methods -/
//-----------/
/**
* Method equals.
*
* @param other
* @return boolean
*/
public boolean equals( Object other )
{
if ( this == other )
{
return true;
}
if ( !( other instanceof Plugin ) )
{
return false;
}
Plugin that = (Plugin) other;
boolean result = true;
result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
return result;
} //-- boolean equals( Object )
/**
* Get the artifactId for a plugin.
*
* @return String
*/
public String getArtifactId()
{
return this.artifactId;
} //-- String getArtifactId()
/**
* Get the name for a plugin.
*
* @return String
*/
public String getName()
{
return this.name;
} //-- String getName()
/**
* Get the prefix for a plugin.
*
* @return String
*/
public String getPrefix()
{
return this.prefix;
} //-- String getPrefix()
/**
* Method hashCode.
*
* @return int
*/
public int hashCode()
{
int result = 17;
result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 );
return result;
} //-- int hashCode()
/**
* Set the artifactId for a plugin.
*
* @param artifactId
*/
public void setArtifactId( String artifactId )
{
this.artifactId = artifactId;
} //-- void setArtifactId( String )
/**
* Set the name for a plugin.
*
* @param name
*/
public void setName( String name )
{
this.name = name;
} //-- void setName( String )
/**
* Set the prefix for a plugin.
*
* @param prefix
*/
public void setPrefix( String prefix )
{
this.prefix = prefix;
} //-- void setPrefix( String )
/**
* Method toString.
*
* @return String
*/
public java.lang.String toString()
{
StringBuilder buf = new StringBuilder( 128 );
buf.append( "artifactId = '" );
buf.append( getArtifactId() );
buf.append( "'" );
return buf.toString();
} //-- java.lang.String toString()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy