org.apache.maven.doxia.site.Skin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doxia-site-model Show documentation
Show all versions of doxia-site-model Show documentation
The Site Model handles the descriptor for sites, also known as site.xml.
The newest version!
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 2.4.0,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.doxia.site;
/**
* A skin artifact declaration.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class Skin
implements java.io.Serializable, java.lang.Cloneable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* The skin group ID.
*/
private String groupId;
/**
* The skin artifact ID.
*/
private String artifactId;
/**
* The skin version.
*/
private String version;
//-----------/
//- Methods -/
//-----------/
/**
* Method clone.
*
* @return Skin
*/
public Skin clone()
{
try
{
Skin copy = (Skin) super.clone();
return copy;
}
catch ( java.lang.Exception ex )
{
throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
+ " does not support clone()" ).initCause( ex );
}
} //-- Skin clone()
/**
* Method equals.
*
* @param other a other object.
* @return boolean
*/
public boolean equals( Object other )
{
if ( this == other )
{
return true;
}
if ( !( other instanceof Skin ) )
{
return false;
}
Skin that = (Skin) other;
boolean result = true;
result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) );
result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) );
return result;
} //-- boolean equals( Object )
/**
* Get the skin artifact ID.
*
* @return String
*/
public String getArtifactId()
{
return this.artifactId;
} //-- String getArtifactId()
/**
* Get the skin group ID.
*
* @return String
*/
public String getGroupId()
{
return this.groupId;
} //-- String getGroupId()
/**
* Get the skin version.
*
* @return String
*/
public String getVersion()
{
return this.version;
} //-- String getVersion()
/**
* Method hashCode.
*
* @return int
*/
public int hashCode()
{
int result = 17;
result = 37 * result + ( groupId != null ? groupId.hashCode() : 0 );
result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 );
result = 37 * result + ( version != null ? version.hashCode() : 0 );
return result;
} //-- int hashCode()
/**
* Set the skin artifact ID.
*
* @param artifactId a artifactId object.
*/
public void setArtifactId( String artifactId )
{
this.artifactId = artifactId;
} //-- void setArtifactId( String )
/**
* Set the skin group ID.
*
* @param groupId a groupId object.
*/
public void setGroupId( String groupId )
{
this.groupId = groupId;
} //-- void setGroupId( String )
/**
* Set the skin version.
*
* @param version a version object.
*/
public void setVersion( String version )
{
this.version = version;
} //-- void setVersion( String )
/**
* Method toString.
*
* @return String
*/
public java.lang.String toString()
{
StringBuilder buf = new StringBuilder( 128 );
buf.append( "groupId = '" );
buf.append( getGroupId() );
buf.append( "'" );
buf.append( "\n" );
buf.append( "artifactId = '" );
buf.append( getArtifactId() );
buf.append( "'" );
buf.append( "\n" );
buf.append( "version = '" );
buf.append( getVersion() );
buf.append( "'" );
return buf.toString();
} //-- java.lang.String toString()
}