public class ValidationMessage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_ERROR |
static int |
TYPE_INFO |
static int |
TYPE_WARNING |
Constructor and Description |
---|
ValidationMessage(int type,
java.lang.String description,
java.lang.String shortDescription,
java.util.Collection<ProcessObject> involvedObjects) |
ValidationMessage(int type,
java.lang.String description,
java.lang.String shortDescription,
java.util.Collection<ProcessObject> involvedObjects,
ProcessObject primaryObject) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
getter for the long version of this problem´s description
|
java.util.Collection<ProcessObject> |
getInvolvedObjects()
getter for the collection of the objects, that are related to this problem
|
java.lang.String |
getInvolvedObjectsString() |
ProcessObject |
getPrimaryObject() |
java.util.List<java.lang.String> |
getRelatedEdgeIDs() |
java.util.List<java.lang.String> |
getRelatedNodeIDs() |
java.lang.String |
getShortDescription()
getter for the short version of this problem´s description (suitable e.g.
|
int |
getType()
getter for the type of this problem.
|
java.lang.String |
getTypeString() |
boolean |
hasPrimaryObject() |
boolean |
isError()
returns, whether this is an error message
|
boolean |
isInformation()
returns, whether this is an information message
|
boolean |
isWarning()
returns, whether this is a warning message
|
void |
setDescription(java.lang.String description)
sets the long version of this problem´s description
|
void |
setInvolvedObjects(java.util.Collection<ProcessObject> involvedObjects)
sets the involved objects to the elements of the provided collection
|
void |
setShortDescription(java.lang.String shortDescription)
sets the short version of this problem´s description (should be suitable
as a title in a problem list or similiar things)
|
void |
setType(int type)
sets the type of message, which this object represents (information,
warning or error)
|
public static final int TYPE_INFO
public static final int TYPE_WARNING
public static final int TYPE_ERROR
public ValidationMessage(int type, java.lang.String description, java.lang.String shortDescription, java.util.Collection<ProcessObject> involvedObjects, ProcessObject primaryObject)
public ValidationMessage(int type, java.lang.String description, java.lang.String shortDescription, java.util.Collection<ProcessObject> involvedObjects)
public int getType()
public java.lang.String getTypeString()
public boolean isError()
public boolean isWarning()
public boolean isInformation()
public void setType(int type)
type
- the type to set (user TYPE_INFO, TYPE_WARNING or TYPE_ERROR)public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setpublic java.lang.String getShortDescription()
public void setShortDescription(java.lang.String shortDescription)
shortDescription
- the shortDescription to setpublic java.util.Collection<ProcessObject> getInvolvedObjects()
public void setInvolvedObjects(java.util.Collection<ProcessObject> involvedObjects)
public java.lang.String getInvolvedObjectsString()
public java.util.List<java.lang.String> getRelatedNodeIDs()
public java.util.List<java.lang.String> getRelatedEdgeIDs()
public ProcessObject getPrimaryObject()
public boolean hasPrimaryObject()