eu.peppol.validation.commons.schematron.svrl
Class SVRLResourceError
java.lang.Object
com.phloc.commons.error.ResourceError
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. |
Methods inherited from class com.phloc.commons.error.ResourceError |
getErrorLevel, getErrorText, getLinkedException, getLocation, isError, isFailure, isNoError, isSuccess |
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
.
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.