public class Diagnostic
extends java.lang.Object
Constructor and Description |
---|
Diagnostic(org.apache.daffodil.lib.api.Diagnostic d) |
Modifier and Type | Method and Description |
---|---|
java.util.List<DataLocation> |
getDataLocations()
Get data location information relevant to this diagnostic object.
|
java.util.List<LocationInSchemaFile> |
getLocationsInSchemaFiles()
Get schema location information relevant to this diagnostic object.
|
java.lang.String |
getMessage()
Get all diagnostic information, including mode name, schema context, and data location
|
java.lang.String |
getMessageOnly()
Get only the message part of a diagnostic.
|
java.lang.String |
getModeName()
Get the diagnostic mode name
|
java.lang.Throwable |
getSomeCause()
Get the cause of that cause this diagnostic
|
java.lang.String |
getSomeMessage()
Get the message that caused this diagnostic
|
boolean |
isError()
Determine if a diagnostic object represents an error or something less serious.
|
java.lang.String |
toString()
Get a string containing the mode name, message, schema location, and data location combined
into a single string
|
public java.util.List<DataLocation> getDataLocations()
For example, this might be a file name, and position within the file.
DataLocation
's related to this diagnosticpublic java.util.List<LocationInSchemaFile> getLocationsInSchemaFiles()
For example, this might be a file name of a schema, and position within the schema file.
LocationInSchemaFile
's related to this diagnostic.public java.lang.String getMessage()
Future versions of Daffodil will change getMessage to return only the message portion of a diagnostic, matching the behavior of getMessageOnly--users should call toString() instead.
public java.lang.String getMessageOnly()
This does not include mode name, schema context, or data location information
public java.lang.String getModeName()
public java.lang.Throwable getSomeCause()
public java.lang.String getSomeMessage()
public boolean isError()
public java.lang.String toString()
toString
in class java.lang.Object