org.apache.tuscany.sca.assembly.builder.impl
Class ProblemImpl

java.lang.Object
  extended by org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl
All Implemented Interfaces:
Problem

public class ProblemImpl
extends java.lang.Object
implements Problem

Reports a composite assembly problem.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.tuscany.sca.monitor.Problem
Problem.Severity
 
Constructor Summary
ProblemImpl(java.lang.String sourceClassName, java.lang.String bundleName, Problem.Severity severity, java.lang.Object problemObject, java.lang.String messageId, java.lang.Exception cause)
          Construct a new problem
ProblemImpl(java.lang.String sourceClassName, java.lang.String bundleName, Problem.Severity severity, java.lang.Object problemObject, java.lang.String messageId, java.lang.Object... messageParams)
          Construct a new problem
 
Method Summary
 java.lang.String getBundleName()
           
 java.lang.Exception getCause()
           
 java.lang.String getMessageId()
           
 java.lang.Object[] getMessageParams()
           
 java.lang.Object getProblemObject()
           
 Problem.Severity getSeverity()
           
 java.lang.String getSourceClassName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProblemImpl

public ProblemImpl(java.lang.String sourceClassName,
                   java.lang.String bundleName,
                   Problem.Severity severity,
                   java.lang.Object problemObject,
                   java.lang.String messageId,
                   java.lang.Object... messageParams)
Construct a new problem

Parameters:
sourceClassName - the class name reporting the problem
bundleName - the name of the message bundle to use
severity - the severity of the problem
problemObject - the model object for which the problem is being reported
messageId - the id of the problem message
messageParams - the parameters of the problem message

ProblemImpl

public ProblemImpl(java.lang.String sourceClassName,
                   java.lang.String bundleName,
                   Problem.Severity severity,
                   java.lang.Object problemObject,
                   java.lang.String messageId,
                   java.lang.Exception cause)
Construct a new problem

Parameters:
sourceClassName - the class name reporting the problem
bundleName - the name of the message bundle to use
severity - the severity of the problem
problemObject - the model object for which the problem is being reported
messageId - the id of the problem message
cause - the exception which caused the problem
Method Detail

getSourceClassName

public java.lang.String getSourceClassName()
Specified by:
getSourceClassName in interface Problem

getBundleName

public java.lang.String getBundleName()
Specified by:
getBundleName in interface Problem

getSeverity

public Problem.Severity getSeverity()
Specified by:
getSeverity in interface Problem

getProblemObject

public java.lang.Object getProblemObject()
Specified by:
getProblemObject in interface Problem

getMessageId

public java.lang.String getMessageId()
Specified by:
getMessageId in interface Problem

getMessageParams

public java.lang.Object[] getMessageParams()
Specified by:
getMessageParams in interface Problem

getCause

public java.lang.Exception getCause()
Specified by:
getCause in interface Problem

toString

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