public class JHErrorElement extends JHElement
Constructor and Description |
---|
JHErrorElement(java.util.List elements,
java.lang.String message,
java.lang.String image,
boolean illFormed)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getImage() |
void |
reportError(RepInfo info)
Puts the item's error message into the RepInfo
object, and affects the wellFormed and valid
flags as required.
|
getColumn, getEntities, getLine
public JHErrorElement(java.util.List elements, java.lang.String message, java.lang.String image, boolean illFormed)
elements
- List of elements representing the document.message
- Message to be reportedimage
- Textual representation of the offending portion.
This will be used as the submessage of a generated
ErrorMessage.illFormed
- true
if the error makes the document
not well-formed, false
if it makes
it only invalid.public java.lang.String getImage()
public void reportError(RepInfo info)