org.apache.maven.doxia.linkcheck.model
Class LinkcheckFileResult

java.lang.Object
  extended by org.apache.maven.doxia.linkcheck.model.LinkcheckFileResult
All Implemented Interfaces:
Serializable

public class LinkcheckFileResult
extends Object
implements Serializable

An class containing the results of a single check of a link.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
static String ERROR
          Validation result: error.
static int ERROR_LEVEL
          Validation result level: error.
static String UNKNOWN
          Validation result: unknown.
static int UNKNOWN_LEVEL
          Validation result level: unknown.
static String VALID
          Validation result: valid.
static int VALID_LEVEL
          Validation result level: valid.
static String WARNING
          Validation result: warning.
static int WARNING_LEVEL
          Validation result level: warning.
 
Constructor Summary
LinkcheckFileResult()
           
 
Method Summary
 boolean equals(Object other)
          Method equals.
 String getErrorMessage()
          Get the error message.
 String getStatus()
          Get the status.
 int getStatusLevel()
          Returns the status as an integer.
 String getTarget()
          Get the target URL.
 int hashCode()
          Method hashCode.
 void setErrorMessage(String errorMessage)
          Set the error message.
 void setStatus(String status)
          Set the status.
 void setTarget(String target)
          Set the target URL.
 String toString()
          Method toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_LEVEL

public static final int ERROR_LEVEL
Validation result level: error.

See Also:
Constant Field Values

WARNING_LEVEL

public static final int WARNING_LEVEL
Validation result level: warning.

See Also:
Constant Field Values

VALID_LEVEL

public static final int VALID_LEVEL
Validation result level: valid.

See Also:
Constant Field Values

UNKNOWN_LEVEL

public static final int UNKNOWN_LEVEL
Validation result level: unknown.

See Also:
Constant Field Values

ERROR

public static final String ERROR
Validation result: error.

See Also:
Constant Field Values

WARNING

public static final String WARNING
Validation result: warning.

See Also:
Constant Field Values

VALID

public static final String VALID
Validation result: valid.

See Also:
Constant Field Values

UNKNOWN

public static final String UNKNOWN
Validation result: unknown.

See Also:
Constant Field Values
Constructor Detail

LinkcheckFileResult

public LinkcheckFileResult()
Method Detail

equals

public boolean equals(Object other)
Method equals.

Overrides:
equals in class Object
Parameters:
other -
Returns:
boolean

getErrorMessage

public String getErrorMessage()
Get the error message.

Returns:
String

getStatus

public String getStatus()
Get the status.

Returns:
String

getTarget

public String getTarget()
Get the target URL.

Returns:
String

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class Object
Returns:
int

setErrorMessage

public void setErrorMessage(String errorMessage)
Set the error message.

Parameters:
errorMessage -

setStatus

public void setStatus(String status)
Set the status.

Parameters:
status -

setTarget

public void setTarget(String target)
Set the target URL.

Parameters:
target -

toString

public String toString()
Method toString.

Overrides:
toString in class Object
Returns:
String

getStatusLevel

public int getStatusLevel()
Returns the status as an integer.

Returns:
One of ERROR, WARNING, VALID or UNKNOWN.


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