org.modeldriven.fuml.xmi.validation
Class ValidationError

java.lang.Object
  extended by org.modeldriven.fuml.xmi.validation.ValidationError

public class ValidationError
extends Object

Contains detailed error information sufficient for generation of formatted, informative error messages for use in simple logging as well as web displays. Errors are categorized and have a associated severity as well as source information including element and location information.

Author:
Scott Cinnamond

Constructor Summary
ValidationError(XmiNode node, ErrorCode code, ErrorSeverity severity)
           
ValidationError(XmiNode node, String propertyName, ErrorCode code, ErrorSeverity severity)
           
ValidationError(XmiReference reference, String id, ErrorCode code, ErrorSeverity severity)
           
 
Method Summary
 ErrorCategory getCategory()
           
 String getCategoryText()
           
 ErrorCode getCode()
           
 String getCodeText()
           
 String getLocationText()
           
 ErrorSeverity getSeverity()
           
 String getText()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationError

public ValidationError(XmiNode node,
                       ErrorCode code,
                       ErrorSeverity severity)

ValidationError

public ValidationError(XmiNode node,
                       String propertyName,
                       ErrorCode code,
                       ErrorSeverity severity)

ValidationError

public ValidationError(XmiReference reference,
                       String id,
                       ErrorCode code,
                       ErrorSeverity severity)
Method Detail

getSeverity

public ErrorSeverity getSeverity()

getCode

public ErrorCode getCode()

getCodeText

public String getCodeText()

getLocationText

public String getLocationText()

getCategory

public ErrorCategory getCategory()

getCategoryText

public String getCategoryText()

getText

public String getText()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.