org.jbpm.pvm.internal.xml
Class ProblemList

java.lang.Object
  extended by org.jbpm.pvm.internal.xml.ProblemList
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DeploymentImpl, Parse

public class ProblemList
extends java.lang.Object
implements java.io.Serializable

list of problems. Base class for Parse and DeploymentImpl.

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  java.util.List<Problem> problems
           
 
Constructor Summary
ProblemList()
           
 
Method Summary
 void addProblem(ProblemImpl problem)
          to add parsing problems during XML parsing and DOM walking.
 void addProblem(java.lang.String msg)
          add a problem with the default severity.
 void addProblem(java.lang.String msg, org.w3c.dom.Element element)
          add a problem with the default severity.
 void addProblem(java.lang.String msg, java.lang.Exception e)
          add a problem with an exception cause and the default severity.
 void addProblem(java.lang.String msg, java.lang.Exception e, org.w3c.dom.Element element)
          add a problem with an exception cause and the default severity.
 void addProblem(java.lang.String msg, java.lang.Exception e, java.lang.String severity, org.w3c.dom.Element element)
           
 void addProblems(java.util.List<Problem> problems)
          add all problems
 JbpmException getJbpmException()
           
 JbpmException getJbpmException(java.lang.String message)
           
 java.util.List<Problem> getProblems()
          all problems encountered
 boolean hasErrors()
          indicates presence of errors
 boolean hasProblems()
          indicates presence of problems
 void setProblems(java.util.List<Problem> problems)
          allows to provide the list object that should be used to capture the parsing problems.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

problems

protected java.util.List<Problem> problems
Constructor Detail

ProblemList

public ProblemList()
Method Detail

addProblem

public void addProblem(java.lang.String msg,
                       java.lang.Exception e,
                       java.lang.String severity,
                       org.w3c.dom.Element element)

addProblem

public void addProblem(java.lang.String msg)
add a problem with the default severity.


addProblem

public void addProblem(java.lang.String msg,
                       java.lang.Exception e)
add a problem with an exception cause and the default severity.


addProblem

public void addProblem(java.lang.String msg,
                       org.w3c.dom.Element element)
add a problem with the default severity.


addProblem

public void addProblem(java.lang.String msg,
                       java.lang.Exception e,
                       org.w3c.dom.Element element)
add a problem with an exception cause and the default severity.


getProblems

public java.util.List<Problem> getProblems()
all problems encountered


addProblem

public void addProblem(ProblemImpl problem)
to add parsing problems during XML parsing and DOM walking.


addProblems

public void addProblems(java.util.List<Problem> problems)
add all problems


hasProblems

public boolean hasProblems()
indicates presence of problems


hasErrors

public boolean hasErrors()
indicates presence of errors


setProblems

public void setProblems(java.util.List<Problem> problems)
allows to provide the list object that should be used to capture the parsing problems.


getJbpmException

public JbpmException getJbpmException()

getJbpmException

public JbpmException getJbpmException(java.lang.String message)


Copyright © 2010 JBoss Community. All Rights Reserved.