eu.peppol.validation.commons.schematron.svrl
Class SVRLResourceError

java.lang.Object
  extended by com.phloc.commons.error.ResourceError
      extended by eu.peppol.validation.commons.schematron.svrl.SVRLResourceError
All Implemented Interfaces:
com.phloc.commons.error.IHasErrorLevel, com.phloc.commons.error.IHasErrorText, com.phloc.commons.error.IResourceError, com.phloc.commons.IHasStringRepresentation, com.phloc.commons.state.IErrorIndicator, com.phloc.commons.state.ISuccessIndicator

public class SVRLResourceError
extends com.phloc.commons.error.ResourceError

Special SVRL resource error that contains the Schematron "test" as well.

Author:
PEPPOL.AT, BRZ, Philip Helger

Constructor Summary
SVRLResourceError(com.phloc.commons.error.IResourceLocation aLocation, com.phloc.commons.error.EErrorLevel eErrorLevel, String sErrorText, String sTest)
          Constructor.
 
Method Summary
 boolean equals(Object o)
           
 String getAsString()
           
 String getTest()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.phloc.commons.error.ResourceError
getErrorLevel, getErrorText, getLinkedException, getLocation, isError, isFailure, isNoError, isSuccess
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SVRLResourceError

public SVRLResourceError(@Nonnull
                         com.phloc.commons.error.IResourceLocation aLocation,
                         @Nonnull
                         com.phloc.commons.error.EErrorLevel eErrorLevel,
                         @Nonnull
                         String sErrorText,
                         @Nonnull
                         String sTest)
Constructor.

Parameters:
aLocation - Location where the error occurred. May not be null.
eErrorLevel - The error level. May not be null.
sErrorText - The error text. May not be null.
sTest - The SVRL test that triggered this error. May not be null.
Method Detail

getTest

@Nonnull
public String getTest()
Returns:
The SVRL test that triggered this error.

getAsString

public String getAsString()
Specified by:
getAsString in interface com.phloc.commons.IHasStringRepresentation
Overrides:
getAsString in class com.phloc.commons.error.ResourceError

equals

public boolean equals(Object o)
Overrides:
equals in class com.phloc.commons.error.ResourceError

hashCode

public int hashCode()
Overrides:
hashCode in class com.phloc.commons.error.ResourceError

toString

public String toString()
Overrides:
toString in class com.phloc.commons.error.ResourceError


Copyright © 2011 PEPPOL project. All Rights Reserved.