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

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

public class Inconsistency
extends java.lang.Object
implements java.io.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(int severity, org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement, java.lang.String pattern, java.lang.Object... arguments)
           
Inconsistency(java.lang.String message, int severity)
          Deprecated.  
Inconsistency(java.lang.String message, int sourceElementOID, int severity)
          Deprecated.  
Inconsistency(java.lang.String message, org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement, int severity)
          Constructs an Inconsistency for a specific model element.
 
Method Summary
 java.lang.String getMessage()
          Gets the message contained in the inconsistency.
 int getSeverity()
          Gets the severity of the inconsistency.
 java.lang.String getSourceElementId()
          Returns the ID of the inconsistent model element (activity, role etc.).
 java.lang.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.).
 java.lang.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(java.lang.String message,
                     int severity)
Deprecated. 

Constructs an Inconsistency.

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

Inconsistency

public Inconsistency(java.lang.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(java.lang.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(int severity,
                     org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
                     java.lang.String pattern,
                     java.lang.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 java.lang.String getSourceElementId()
Returns the ID of the inconsistent model element (activity, role etc.).

Returns:
the ID of the source.

getSourceElementName

public java.lang.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 java.lang.String getMessage()
Gets the message contained in the inconsistency.

Returns:
the inconsistency message.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2014 SunGard CSA LLC. All Rights Reserved.