org.eclipse.stardust.engine.api.model
Class Inconsistency

java.lang.Object
  extended by org.eclipse.stardust.engine.api.model.Inconsistency
All Implemented Interfaces:
Serializable

public class Inconsistency
extends Object
implements Serializable

The Inconsistency class provides information about a model inconsistency. Inconsistencies are of two types: errors and warnings. When an error inconsistency is issued, the model is unable to work (models with errors cannot be deployed). A warning inconsistency implies that the specific workflow operation may fail.

See Also:
Serialized Form

Field Summary
static int ERROR
          Specifies an error inconsistency.
static int WARNING
          Specifies a warning inconsistency.
 
Constructor Summary
Inconsistency(org.eclipse.stardust.common.error.ErrorCase error, int severity)
           
Inconsistency(org.eclipse.stardust.common.error.ErrorCase error, org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement, int severity)
           
Inconsistency(org.eclipse.stardust.common.error.ErrorCase error, String message, org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement, int severity)
           
Inconsistency(int severity, org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement, String pattern, Object... arguments)
           
Inconsistency(String message, int severity)
          Deprecated.  
Inconsistency(String message, int sourceElementOID, int severity)
          Deprecated.  
Inconsistency(String message, org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement, int severity)
          Constructs an Inconsistency for a specific model element.
 
Method Summary
 org.eclipse.stardust.common.error.ErrorCase getError()
           
 String getErrorID()
          Gets the errorID contained in the inconsistency.
 String getMessage()
          Gets the message contained in the inconsistency.
 int getSeverity()
          Gets the severity of the inconsistency.
 String getSourceElementId()
          Returns the ID of the inconsistent model element (activity, role etc.).
 String getSourceElementName()
          Returns the Name of the inconsistent model element (activity, role etc.).
 int getSourceElementOID()
          Returns the element OID of the inconsistent model element (activity, role etc.).
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WARNING

public static final int WARNING
Specifies a warning inconsistency.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Specifies an error inconsistency.

See Also:
Constant Field Values
Constructor Detail

Inconsistency

public Inconsistency(String message,
                     int severity)
Deprecated. 

Constructs an Inconsistency.

Parameters:
message - inconsistency message.
severity - the severity: WARNING or ERROR.

Inconsistency

public Inconsistency(String message,
                     int sourceElementOID,
                     int severity)
Deprecated. 

Constructs an Inconsistency for a specific model element.

Parameters:
message - inconsistency message.
sourceElementOID - the OID of the inconsistent model element.
severity - the severity: WARNING or ERROR.

Inconsistency

public Inconsistency(String message,
                     org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
                     int severity)
Constructs an Inconsistency for a specific model element.

Parameters:
message - inconsistency message.
sourceElement - the inconsistent model element.
severity - the severity: WARNING or ERROR.

Inconsistency

public Inconsistency(org.eclipse.stardust.common.error.ErrorCase error,
                     String message,
                     org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
                     int severity)

Inconsistency

public Inconsistency(org.eclipse.stardust.common.error.ErrorCase error,
                     org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
                     int severity)

Inconsistency

public Inconsistency(org.eclipse.stardust.common.error.ErrorCase error,
                     int severity)

Inconsistency

public Inconsistency(int severity,
                     org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
                     String pattern,
                     Object... arguments)
Method Detail

getSourceElementOID

public int getSourceElementOID()
Returns the element OID of the inconsistent model element (activity, role etc.).

Returns:
the element OID of the source.

getSourceElementId

public String getSourceElementId()
Returns the ID of the inconsistent model element (activity, role etc.).

Returns:
the ID of the source.

getSourceElementName

public String getSourceElementName()
Returns the Name of the inconsistent model element (activity, role etc.).

Returns:
the name of the source.

getSeverity

public int getSeverity()
Gets the severity of the inconsistency.

Returns:
the severity.

getMessage

public String getMessage()
Gets the message contained in the inconsistency.

Returns:
the inconsistency message.

getErrorID

public String getErrorID()
Gets the errorID contained in the inconsistency.

Returns:
the error id

getError

public org.eclipse.stardust.common.error.ErrorCase getError()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2017 Eclipse Stardust. All Rights Reserved.