org.apache.maven.doxia.linkcheck.validation
Class LinkValidationResult

java.lang.Object
  extended by org.apache.maven.doxia.linkcheck.validation.LinkValidationResult
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HTTPLinkValidationResult

public class LinkValidationResult
extends Object
implements Serializable

This class is used to return status responses from the validation handlers. A persistent result means that it can be stored in the persistent cache and used across runs.

Version:
$Id: LinkValidationResult.java 799838 2009-08-01 11:23:24Z vsiveton $
Author:
Ben Walding, Arnaud Heritier
See Also:
Serialized Form

Field Summary
static int NOTMINE
          Validation result level: not mine.
 
Constructor Summary
LinkValidationResult(int stat, boolean persistent, String message)
          Constructor: initializes status, persistent and errorMessage.
 
Method Summary
 String getErrorMessage()
          Returns the errorMessage.
 int getStatus()
          Returns the status.
 boolean isPersistent()
          Returns the persistent property.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOTMINE

public static final int NOTMINE
Validation result level: not mine.

See Also:
Constant Field Values
Constructor Detail

LinkValidationResult

public LinkValidationResult(int stat,
                            boolean persistent,
                            String message)
Constructor: initializes status, persistent and errorMessage.

Parameters:
stat - The status.
persistent - The persistent.
message - The errorMessage.
Method Detail

isPersistent

public boolean isPersistent()
Returns the persistent property.

Returns:
boolean

getStatus

public int getStatus()
Returns the status.

Returns:
int

getErrorMessage

public String getErrorMessage()
Returns the errorMessage.

Returns:
the errorMessage.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.