org.apache.archiva.configuration.AbstractRepositoryConfiguration Maven / Gradle / Ivy
The newest version!
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.7,
// any modifications will be overwritten.
// ==============================================================
package org.apache.archiva.configuration;
/**
* Class AbstractRepositoryConfiguration.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class AbstractRepositoryConfiguration
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
*
* The repository identifier.
*
*/
private String id;
/**
*
* The descriptive name of the repository.
*
*/
private String name;
/**
*
* The layout of the repository. Valid values are
* "default" and "legacy".
*
*/
private String layout = "default";
/**
*
* The directory for the indexes of this
* repository.
*
*/
private String indexDir;
/**
*
* The description of this repository.
*
*/
private String description;
//-----------/
//- Methods -/
//-----------/
/**
* Get the description of this repository.
*
* @return String
*/
public String getDescription()
{
return this.description;
} //-- String getDescription()
/**
* Get the repository identifier.
*
* @return String
*/
public String getId()
{
return this.id;
} //-- String getId()
/**
* Get the directory for the indexes of this repository.
*
* @return String
*/
public String getIndexDir()
{
return this.indexDir;
} //-- String getIndexDir()
/**
* Get the layout of the repository. Valid values are "default"
* and "legacy".
*
* @return String
*/
public String getLayout()
{
return this.layout;
} //-- String getLayout()
/**
* Get the descriptive name of the repository.
*
* @return String
*/
public String getName()
{
return this.name;
} //-- String getName()
/**
* Set the description of this repository.
*
* @param description
*/
public void setDescription( String description )
{
this.description = description;
} //-- void setDescription( String )
/**
* Set the repository identifier.
*
* @param id
*/
public void setId( String id )
{
this.id = id;
} //-- void setId( String )
/**
* Set the directory for the indexes of this repository.
*
* @param indexDir
*/
public void setIndexDir( String indexDir )
{
this.indexDir = indexDir;
} //-- void setIndexDir( String )
/**
* Set the layout of the repository. Valid values are "default"
* and "legacy".
*
* @param layout
*/
public void setLayout( String layout )
{
this.layout = layout;
} //-- void setLayout( String )
/**
* Set the descriptive name of the repository.
*
* @param name
*/
public void setName( String name )
{
this.name = name;
} //-- void setName( String )
public int hashCode()
{
int result = 17;
result = 37 * result + ( id != null ? id.hashCode() : 0 );
return result;
}
public boolean equals( Object other )
{
if ( this == other )
{
return true;
}
if ( !( other instanceof AbstractRepositoryConfiguration ) )
{
return false;
}
AbstractRepositoryConfiguration that = (AbstractRepositoryConfiguration) other;
boolean result = true;
result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy