Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instancevalidator.report.impl
Class DefaultInstanceValidationMessage

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.report.impl.MessageImpl
      extended by eu.esdihumboldt.hale.common.instancevalidator.report.impl.DefaultInstanceValidationMessage
All Implemented Interfaces:
Message, InstanceValidationMessage

public class DefaultInstanceValidationMessage
extends MessageImpl
implements InstanceValidationMessage

Default implementation of InstanceValidationMessage.

Author:
Kai Schwierczek

Constructor Summary
DefaultInstanceValidationMessage(InstanceReference instanceReference, QName type, List<QName> path, String category, String message)
          Create a new instance validation message.
 
Method Summary
 String getCategory()
          Returns the category of this message (i.
 String getFormattedMessage()
          Get the formatted message string with additional informations.
 InstanceReference getInstanceReference()
          Returns the reference to the instance this message is about.
 List<QName> getPath()
          Returns the path within the type this message is about.
 QName getType()
          Returns the type name this message belongs to.
 
Methods inherited from class eu.esdihumboldt.hale.common.core.report.impl.MessageImpl
getMessage, getStackTrace, getThrowable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.report.Message
getMessage, getStackTrace, getThrowable
 

Constructor Detail

DefaultInstanceValidationMessage

public DefaultInstanceValidationMessage(InstanceReference instanceReference,
                                        QName type,
                                        List<QName> path,
                                        String category,
                                        String message)
Create a new instance validation message.

Parameters:
instanceReference - the instance reference this message is associated to, may be null
type - the type's name
path - the path within the type
category - the message's category
message - the message string
Method Detail

getInstanceReference

public InstanceReference getInstanceReference()
Description copied from interface: InstanceValidationMessage
Returns the reference to the instance this message is about. The reference is only valid as long as the data set didn't change.

Specified by:
getInstanceReference in interface InstanceValidationMessage
Returns:
the reference to the instance this message is about, may be null
See Also:
InstanceValidationMessage.getInstanceReference()

getType

public QName getType()
Description copied from interface: InstanceValidationMessage
Returns the type name this message belongs to. If the validation wasn't started at an instance this may be null.

Specified by:
getType in interface InstanceValidationMessage
Returns:
the type name this message belongs to
See Also:
InstanceValidationMessage.getType()

getPath

public List<QName> getPath()
Description copied from interface: InstanceValidationMessage
Returns the path within the type this message is about.

Specified by:
getPath in interface InstanceValidationMessage
Returns:
the path within the type this message is about
See Also:
InstanceValidationMessage.getPath()

getCategory

public String getCategory()
Description copied from interface: InstanceValidationMessage
Returns the category of this message (i. e. which validator created the message).

Specified by:
getCategory in interface InstanceValidationMessage
Returns:
the category of this message
See Also:
InstanceValidationMessage.getCategory()

getFormattedMessage

public String getFormattedMessage()
Description copied from interface: Message
Get the formatted message string with additional informations.

Specified by:
getFormattedMessage in interface Message
Overrides:
getFormattedMessage in class MessageImpl
Returns:
the formatted message
See Also:
MessageImpl.getFormattedMessage()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d