All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.maven.doxia.site.Version Maven / Gradle / Ivy

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;

/**
 * Modify display properties for version published.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class Version
    implements java.io.Serializable, java.lang.Cloneable
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Where to place the version published (left, right,
     * navigation-top, navigation-bottom, bottom).
     */
    private String position = "left";


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method clone.
     * 
     * @return Version
     */
    public Version clone()
    {
        try
        {
            Version copy = (Version) 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 );
        }
    } //-- Version clone()

    /**
     * Method equals.
     * 
     * @param other a other object.
     * @return boolean
     */
    public boolean equals( Object other )
    {
        if ( this == other )
        {
            return true;
        }

        if ( !( other instanceof Version ) )
        {
            return false;
        }

        Version that = (Version) other;
        boolean result = true;

        result = result && ( getPosition() == null ? that.getPosition() == null : getPosition().equals( that.getPosition() ) );

        return result;
    } //-- boolean equals( Object )

    /**
     * Get where to place the version published (left, right,
     * navigation-top, navigation-bottom, bottom).
     * 
     * @return String
     */
    public String getPosition()
    {
        return this.position;
    } //-- String getPosition()

    /**
     * Method hashCode.
     * 
     * @return int
     */
    public int hashCode()
    {
        int result = 17;

        result = 37 * result + ( position != null ? position.hashCode() : 0 );

        return result;
    } //-- int hashCode()

    /**
     * Set where to place the version published (left, right,
     * navigation-top, navigation-bottom, bottom).
     * 
     * @param position a position object.
     */
    public void setPosition( String position )
    {
        this.position = position;
    } //-- void setPosition( String )

    /**
     * Method toString.
     * 
     * @return String
     */
    public java.lang.String toString()
    {
        StringBuilder buf = new StringBuilder( 128 );

        buf.append( "position = '" );
        buf.append( getPosition() );
        buf.append( "'" );

        return buf.toString();
    } //-- java.lang.String toString()

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy