org.apache.maven.doxia.linkcheck.model.LinkcheckModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doxia-linkcheck Show documentation
Show all versions of doxia-linkcheck Show documentation
Doxia linkcheck is a tool to check the validity of links
The newest version!
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.1 on 2010-11-09 20:51:12,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.doxia.linkcheck.model;
/**
*
* The <linkcheck>
element is the root
* of the linkcheck descriptor.
*
*
* @version $Revision$ $Date$
*/
public class LinkcheckModel
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field files.
*/
private java.util.List/**/ files;
/**
* Field modelEncoding.
*/
private String modelEncoding = "UTF-8";
//-----------/
//- Methods -/
//-----------/
/**
* Method addFile.
*
* @param linkcheckFile
*/
public void addFile( LinkcheckFile linkcheckFile )
{
getFiles().add( linkcheckFile );
} //-- void addFile( LinkcheckFile )
/**
* Method equals.
*
* @param other
* @return boolean
*/
public boolean equals( Object other )
{
if ( this == other )
{
return true;
}
if ( !( other instanceof LinkcheckModel ) )
{
return false;
}
LinkcheckModel that = (LinkcheckModel) other;
boolean result = true;
result = result && ( getFiles() == null ? that.getFiles() == null : getFiles().equals( that.getFiles() ) );
return result;
} //-- boolean equals( Object )
/**
* Method getFiles.
*
* @return List
*/
public java.util.List/**/ getFiles()
{
if ( this.files == null )
{
this.files = new java.util.ArrayList/**/();
}
return this.files;
} //-- java.util.List/**/ getFiles()
/**
* Get the modelEncoding field.
*
* @return String
*/
public String getModelEncoding()
{
return this.modelEncoding;
} //-- String getModelEncoding()
/**
* Method hashCode.
*
* @return int
*/
public int hashCode()
{
int result = 17;
result = 37 * result + ( files != null ? files.hashCode() : 0 );
return result;
} //-- int hashCode()
/**
* Method removeFile.
*
* @param linkcheckFile
*/
public void removeFile( LinkcheckFile linkcheckFile )
{
getFiles().remove( linkcheckFile );
} //-- void removeFile( LinkcheckFile )
/**
* Set list of <file>
elements.
*
* @param files
*/
public void setFiles( java.util.List/**/ files )
{
this.files = files;
} //-- void setFiles( java.util.List )
/**
* Set the modelEncoding field.
*
* @param modelEncoding
*/
public void setModelEncoding( String modelEncoding )
{
this.modelEncoding = modelEncoding;
} //-- void setModelEncoding( String )
/**
* Method toString.
*
* @return String
*/
public java.lang.String toString()
{
StringBuffer buf = new StringBuffer( 128 );
buf.append( "files = '" );
buf.append( getFiles() );
buf.append( "'" );
return buf.toString();
} //-- java.lang.String toString()
}